Class DispatcherWhiteboard


  • @InOnly
    public class DispatcherWhiteboard
    extends java.lang.Object
    This class will redirect messages to the m_endpointUri URI to any OSGi services that are registered at the interface that is defined by the setServiceClass(String) method call.
    • Constructor Detail

      • DispatcherWhiteboard

        public DispatcherWhiteboard​(java.lang.String endpointUri)
    • 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