@ Activate protected void activate ( ComponentContext componentContext , Map < String , Object > props ) { this . componentContext = componentContext ; // // Parse the configuration that we've been provided // Dictionary<?, ?> configProperties = componentContext.getProperties(); // processConfigProperties(configProperties); // Hold a reference to the bundle context bundleContext = componentContext . getBundleContext ( ) ; // Start listening to the framework events so we can publish them // as specified in section 113.6.3 frameworkEventAdapter = new FrameworkEventAdapter ( this ) ; bundleContext . addFrameworkListener ( frameworkEventAdapter ) ; // Start listening to the bundle events so we can publish them // as specified in section 113.6.4 bundleEventAdapter = new BundleEventAdapter ( this ) ; bundleContext . addBundleListener ( bundleEventAdapter ) ; // Start listening to the service events so we can publish them // as specified in section 113.6.5 serviceEventAdapter = new ServiceEventAdapter ( this ) ; bundleContext . addServiceListener ( serviceEventAdapter ) ; processConfigProperties ( props ) ; }
Activate the EventEngine implementation . This method will be called by OSGi Declarative Services implementation when the component is initially activated and when changes to our configuration have occurred .