@InOnly public class DispatcherWhiteboard extends Object
m_endpointUri URI
to any OSGi services that are registered at the interface that is defined by the
setServiceClass(String) method call.| Constructor and Description |
|---|
DispatcherWhiteboard(String endpointUri) |
| Modifier and Type | Method and 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) |
public DispatcherWhiteboard(String endpointUri)
public String getEndpointUri()
public void setContext(org.osgi.framework.BundleContext context)
public Class<?> getMessageClass()
public void setMessageClass(Class<?> messageClass)
public void setMessageClass(String messageClass) throws ClassNotFoundException
ClassNotFoundExceptionpublic Class<?> getServiceClass()
public void setServiceClass(Class<?> serviceClass)
public void setServiceClass(String serviceClass) throws ClassNotFoundException
ClassNotFoundExceptionpublic String getMethodName()
public void setMethodName(String methodName)
public void destroy()
@Consume(property="endpointUri") public void dispatch(Object message) throws NoSuchMethodException, SecurityException
Copyright © 2016. All rights reserved.