Package org.opennms.core.camel
Class DispatcherWhiteboard
- java.lang.Object
-
- org.opennms.core.camel.DispatcherWhiteboard
-
@InOnly public class DispatcherWhiteboard extends java.lang.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(java.lang.String endpointUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
dispatch(java.lang.Object message)
java.lang.String
getEndpointUri()
java.lang.Class<?>
getMessageClass()
java.lang.String
getMethodName()
java.lang.Class<?>
getServiceClass()
void
setContext(org.osgi.framework.BundleContext context)
void
setMessageClass(java.lang.Class<?> messageClass)
void
setMessageClass(java.lang.String messageClass)
void
setMethodName(java.lang.String methodName)
void
setServiceClass(java.lang.Class<?> serviceClass)
void
setServiceClass(java.lang.String serviceClass)
-
-
-
Method Detail
-
getEndpointUri
public java.lang.String getEndpointUri()
-
setContext
public void setContext(org.osgi.framework.BundleContext context)
-
getMessageClass
public java.lang.Class<?> getMessageClass()
-
setMessageClass
public void setMessageClass(java.lang.Class<?> messageClass)
-
setMessageClass
public void setMessageClass(java.lang.String messageClass) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
getServiceClass
public java.lang.Class<?> getServiceClass()
-
setServiceClass
public void setServiceClass(java.lang.Class<?> serviceClass)
-
setServiceClass
public void setServiceClass(java.lang.String serviceClass) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
getMethodName
public java.lang.String getMethodName()
-
setMethodName
public void setMethodName(java.lang.String methodName)
-
destroy
public void destroy()
-
dispatch
@Consume(property="endpointUri") public void dispatch(java.lang.Object message) throws java.lang.NoSuchMethodException, java.lang.SecurityException
- Throws:
java.lang.NoSuchMethodException
java.lang.SecurityException
-
-