Package org.opennms.core.camel
Class DispatcherWhiteboard
- java.lang.Object
-
- org.opennms.core.camel.DispatcherWhiteboard
-
@InOnly public class DispatcherWhiteboard extends Object
This class will redirect messages to them_endpointUri
URI to any OSGi services that are registered at the interface that is defined by thesetServiceClass(String)
method call.
-
-
Constructor Summary
Constructors Constructor Description DispatcherWhiteboard(String endpointUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
dispatch(Object message)
String
getEndpointUri()
Class<?>
getMessageClass()
String
getMethodName()
Class<?>
getServiceClass()
void
setContext(org.osgi.framework.BundleContext context)
void
setMessageClass(Class<?> messageClass)
void
setMessageClass(String messageClass)
void
setMethodName(String methodName)
void
setServiceClass(Class<?> serviceClass)
void
setServiceClass(String serviceClass)
-
-
-
Constructor Detail
-
DispatcherWhiteboard
public DispatcherWhiteboard(String endpointUri)
-
-
Method Detail
-
getEndpointUri
public String getEndpointUri()
-
setContext
public void setContext(org.osgi.framework.BundleContext context)
-
getMessageClass
public Class<?> getMessageClass()
-
setMessageClass
public void setMessageClass(Class<?> messageClass)
-
setMessageClass
public void setMessageClass(String messageClass) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getServiceClass
public Class<?> getServiceClass()
-
setServiceClass
public void setServiceClass(Class<?> serviceClass)
-
setServiceClass
public void setServiceClass(String serviceClass) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getMethodName
public String getMethodName()
-
setMethodName
public void setMethodName(String methodName)
-
destroy
public void destroy()
-
dispatch
@Consume(property="endpointUri") public void dispatch(Object message) throws NoSuchMethodException, SecurityException
-
-