mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/ccomm/link/LinkLayerServiceProxy.java
@Activate
    public void activate(final BundleContext context)
    {
        // register to get deactivation events from each link layer, can't register a service during deactivation so
        // must do it now
        m_DeactivateWaitSem = new Semaphore(0);
        final EventHandler handler = new EventHandler()
        {
            @Override
            public void handleEvent(final Event event)
            {
                m_DeactivateWaitSem.release();
            }
        };
        
        final Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(EventConstants.EVENT_TOPIC, LinkLayer.TOPIC_DEACTIVATED);
        m_EventDeactivatedService = context.registerService(EventHandler.class, handler, props);
    }
/**
     * Activate the component by registering for deactivation events.
     * 
     * @param context
     *      bundle context
     */
Activate the component by registering for deactivation events.

@param context
bundle context
Activate the component by registering for deactivation events . @param context bundle context
@Activate
    public void activate(final BundleContext context)
    {
        m_DeactivateWaitSem = new Semaphore(0);
        final EventHandler handler = new EventHandler()
        {
            @Override
            public void handleEvent(final Event event)
            {
                m_DeactivateWaitSem.release();
            }
        };
        final Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(EventConstants.EVENT_TOPIC, LinkLayer.TOPIC_DEACTIVATED);
        m_EventDeactivatedService = context.registerService(EventHandler.class, handler, props);
    }
@ Activate public void activate ( final BundleContext context ) { m_DeactivateWaitSem = new Semaphore ( 0 ) ; final EventHandler handler = new EventHandler ( ) { @ Override public void handleEvent ( final Event event ) { m_DeactivateWaitSem . release ( ) ; } } ; final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( EventConstants . EVENT_TOPIC , LinkLayer . TOPIC_DEACTIVATED ) ; m_EventDeactivatedService = context . registerService ( EventHandler . class , handler , props ) ; }
Activate the component by registering for deactivation events.
Activate the component by registering for deactivation events .
// register to get deactivation events from each link layer, can't register a service during deactivation so // must do it now