use of org.apache.felix.scr.impl.runtime.ServiceComponentRuntimeImpl in project felix by apache.
the class Activator method doStart.
@Override
protected void doStart() throws Exception {
// prepare component registry
m_componentBundles = new HashMap<Long, BundleComponentActivator>();
m_componentRegistry = new ComponentRegistry(this);
final ServiceComponentRuntime runtime = new ServiceComponentRuntimeImpl(m_globalContext, m_componentRegistry);
m_runtime_reg = m_context.registerService(ServiceComponentRuntime.class, runtime, null);
// log SCR startup
log(LogService.LOG_INFO, m_bundle, " Version = {0}", new Object[] { m_bundle.getVersion().toString() }, null);
// create and start the component actor
m_componentActor = new ComponentActorThread(this);
Thread t = new Thread(m_componentActor, "SCR Component Actor");
t.setDaemon(true);
t.start();
super.doStart();
m_scrCommand = ScrCommand.register(m_context, runtime, m_configuration);
m_configuration.setScrCommand(m_scrCommand);
}
Aggregations