example.message.router/src/example/message/client/ExampleMessageClient.java
private ServiceRegistration<EventHandler> registerEvents(final BundleContext context)
    {
        m_Logging.debug("Registering for event [%s]", RemoteConstants.TOPIC_MESSAGE_RECEIVED);
        
        final Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
        
        return context.registerService(EventHandler.class, this, props);
    }
/**
     * Method used to register the event handler to listener for message received events.
     * 
     * @param context
     *      Bundle context the event handler should be registered with.
     * @return
     *      The service registration that represents the event handler.
     */
Method used to register the event handler to listener for message received events.

@param context
Bundle context the event handler should be registered with.
@return
The service registration that represents the event handler.
Method used to register the event handler to listener for message received events . @param context Bundle context the event handler should be registered with . @return The service registration that represents the event handler .
private ServiceRegistration<EventHandler> registerEvents(final BundleContext context)
    {
        m_Logging.debug("Registering for event [%s]", RemoteConstants.TOPIC_MESSAGE_RECEIVED);
        final Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
        return context.registerService(EventHandler.class, this, props);
    }
private ServiceRegistration < EventHandler > registerEvents ( final BundleContext context ) { m_Logging . debug ( "Registering for event [%s]" , RemoteConstants . TOPIC_MESSAGE_RECEIVED ) ; final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( EventConstants . EVENT_TOPIC , RemoteConstants . TOPIC_MESSAGE_RECEIVED ) ; return context . registerService ( EventHandler . class , this , props ) ; }
Method used to register the event handler to listener for message received events.
Method used to register the event handler to listener for message received events .