mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/pm/WakeLockImpl.java
@Activate
    public void activateInstance(final BundleContext bundleContext, final Map<String, Object> properties)
    {
        m_Id = (String)properties.get(COMPONENT_PROP_ID);
        m_Context = (Class<?>)properties.get(COMPONENT_PROP_CONTEXT);
        m_SourceObject = (FactoryObject)properties.get(COMPONENT_PROP_SRC_OBJ);
        m_PowerManagerInternal = (PowerManagerInternal)properties.get(COMPONENT_PROP_POWER_MGR);

        final String traceProp = bundleContext.getProperty(WAKELOCK_TRACE_PROPERTY);
        if (traceProp != null && Boolean.TRUE.toString().equalsIgnoreCase(traceProp))
        {
            m_EnableTrace = true;
        }
    }
/**
     * Activate the component.
     * 
     * @param bundleContext
     *            OSGi bundle context
     * @param properties
     *            component properties
     */
Activate the component.

@param bundleContext
OSGi bundle context
@param properties
component properties
Activate the component . @param bundleContext OSGi bundle context @param properties component properties
@Activate
    public void activateInstance(final BundleContext bundleContext, final Map<String, Object> properties)
    {
        m_Id = (String)properties.get(COMPONENT_PROP_ID);
        m_Context = (Class<?>)properties.get(COMPONENT_PROP_CONTEXT);
        m_SourceObject = (FactoryObject)properties.get(COMPONENT_PROP_SRC_OBJ);
        m_PowerManagerInternal = (PowerManagerInternal)properties.get(COMPONENT_PROP_POWER_MGR);
        final String traceProp = bundleContext.getProperty(WAKELOCK_TRACE_PROPERTY);
        if (traceProp != null && Boolean.TRUE.toString().equalsIgnoreCase(traceProp))
        {
            m_EnableTrace = true;
        }
    }
@ Activate public void activateInstance ( final BundleContext bundleContext , final Map < String , Object > properties ) { m_Id = ( String ) properties . get ( COMPONENT_PROP_ID ) ; m_Context = ( Class < ? > ) properties . get ( COMPONENT_PROP_CONTEXT ) ; m_SourceObject = ( FactoryObject ) properties . get ( COMPONENT_PROP_SRC_OBJ ) ; m_PowerManagerInternal = ( PowerManagerInternal ) properties . get ( COMPONENT_PROP_POWER_MGR ) ; final String traceProp = bundleContext . getProperty ( WAKELOCK_TRACE_PROPERTY ) ; if ( traceProp != null && Boolean . TRUE . toString ( ) . equalsIgnoreCase ( traceProp ) ) { m_EnableTrace = true ; } }
Activate the component.
Activate the component .