mil.dod.th.ose.logging/src/mil/dod/th/ose/logging/EventLogger.java
@Activate
    public void activate(final BundleContext context)
    {
        final boolean enabled = Boolean.parseBoolean(context.getProperty(LOG_EVENTS_ENABLED_PROPERTY));
        
        if (enabled)
        {
            final Dictionary<String, Object> eventHandlerProps = new Hashtable<String, Object>();
            eventHandlerProps.put(EventConstants.EVENT_TOPIC, "*");
            m_EventHandlerReg = 
                    context.registerService(EventHandler.class, new EventLoggerHandler(), eventHandlerProps);
        }
    }
/**
     * Activate the component.
     * 
     * @param context
     *      context for the bundle containing this component
     */
Activate the component.

@param context
context for the bundle containing this component
Activate the component . @param context context for the bundle containing this component
@Activate
    public void activate(final BundleContext context)
    {
        final boolean enabled = Boolean.parseBoolean(context.getProperty(LOG_EVENTS_ENABLED_PROPERTY));
        if (enabled)
        {
            final Dictionary<String, Object> eventHandlerProps = new Hashtable<String, Object>();
            eventHandlerProps.put(EventConstants.EVENT_TOPIC, "*");
            m_EventHandlerReg = 
                    context.registerService(EventHandler.class, new EventLoggerHandler(), eventHandlerProps);
        }
    }
@ Activate public void activate ( final BundleContext context ) { final boolean enabled = Boolean . parseBoolean ( context . getProperty ( LOG_EVENTS_ENABLED_PROPERTY ) ) ; if ( enabled ) { final Dictionary < String , Object > eventHandlerProps = new Hashtable < String , Object > ( ) ; eventHandlerProps . put ( EventConstants . EVENT_TOPIC , "*" ) ; m_EventHandlerReg = context . registerService ( EventHandler . class , new EventLoggerHandler ( ) , eventHandlerProps ) ; } }
Activate the component.
Activate the component .