example.remote.interface.demo/src/terra/harvest/bundle/demo/RemoteInterfaceOSGiDemo.java
public void registerAllEvents(final BundleContext context)
        {
            // register to listen for all messages in the topic "TOPIC_MESSAGE_RECEIVED"
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
            
            // register the event handler
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Method to register this event handler to listen for message received events.
         * @param context
         *      the bundle context
         */
Method to register this event handler to listen for message received events.
@param context
the bundle context
Method to register this event handler to listen for message received events . @param context the bundle context
public void registerAllEvents(final BundleContext context)
        {
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
public void registerAllEvents ( final BundleContext context ) { final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( EventConstants . EVENT_TOPIC , RemoteConstants . TOPIC_MESSAGE_RECEIVED ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Method to register this event handler to listen for message received events.
Method to register this event handler to listen for message received events .
// register to listen for all messages in the topic "TOPIC_MESSAGE_RECEIVED" // register the event handler