example.platform.power/src/example/platform/power/ExamplePlatformPowerManager.java
public ServiceRegistration<EventHandler> registerEvents(final BundleContext context)
    {
        final String configEvents = ExamplePlatformPowerManager.TOPIC_STANDBY_NOTICE_EVENT;
        
        final Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(EventConstants.EVENT_TOPIC, configEvents);
        
        return context.registerService(EventHandler.class, this, props);
    }
/**
     * Registers the platform power manager to listen for 
     * {@link PlatformPowerManager#TOPIC_STANDBY_NOTICE_EVENT} and then handle them.
     * @param context 
     *      the bundle context to register with
     * @return 
     *      Service Registration reference
     */
Registers the platform power manager to listen for
PlatformPowerManager#TOPIC_STANDBY_NOTICE_EVENT and then handle them.
@param context
the bundle context to register with
@return
Service Registration reference
Registers the platform power manager to listen for PlatformPowerManager#TOPIC_STANDBY_NOTICE_EVENT and then handle them . @param context the bundle context to register with @return Service Registration reference
public ServiceRegistration<EventHandler> registerEvents(final BundleContext context)
    {
        final String configEvents = ExamplePlatformPowerManager.TOPIC_STANDBY_NOTICE_EVENT;
        final Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(EventConstants.EVENT_TOPIC, configEvents);
        return context.registerService(EventHandler.class, this, props);
    }
public ServiceRegistration < EventHandler > registerEvents ( final BundleContext context ) { final String configEvents = ExamplePlatformPowerManager . TOPIC_STANDBY_NOTICE_EVENT ; final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( EventConstants . EVENT_TOPIC , configEvents ) ; return context . registerService ( EventHandler . class , this , props ) ; }
Registers the platform power manager to listen for
 {@link PlatformPowerManager#TOPIC_STANDBY_NOTICE_EVENT} and then handle them.
Registers the platform power manager to listen for { @link PlatformPowerManager#TOPIC_STANDBY_NOTICE_EVENT } and then handle them .