m_factoryInstance = factoryInstance;
m_container = container;
m_componentMethods = componentMethods;
m_componentId = -1;
ComponentMetadata metadata = container.getComponentMetadata();
m_dependencyManagers = loadDependencyManagers( metadata );
m_stateLock = new ReentrantLock( true );
// dump component details
if ( isLogEnabled( LogService.LOG_DEBUG ) )
{
log(
LogService.LOG_DEBUG,
"Component {0} created: DS={1}, implementation={2}, immediate={3}, default-enabled={4}, factory={5}, configuration-policy={6}, activate={7}, deactivate={8}, modified={9} configuration-pid={10}",
new Object[]
{ metadata.getName(), metadata.getDSVersion(),
metadata.getImplementationClassName(), metadata.isImmediate(),
metadata.isEnabled(), metadata.getFactoryIdentifier(),
metadata.getConfigurationPolicy(), metadata.getActivate(), metadata.getDeactivate(),
metadata.getModified(), metadata.getConfigurationPid() }, null );
if ( metadata.getServiceMetadata() != null )
{
log( LogService.LOG_DEBUG, "Component {0} Services: scope={1}, services={2}", new Object[]
{ metadata.getName(), metadata.getServiceScope(),
Arrays.asList( metadata.getServiceMetadata().getProvides() ) }, null );
}
if ( metadata.getProperties() != null )
{
log( LogService.LOG_DEBUG, "Component {0} Properties: {1}", new Object[]
{ metadata.getName(), metadata.getProperties() }, null );
}
}
}