SimpleLogger, ComponentManager<S>PrototypeServiceFactoryComponentManagerpublic class ServiceFactoryComponentManager<S> extends SingleComponentManager<S>
ServiceFactoryComponentManager for components specified with <service serviceFactory='true'/>
in the xml metadata. The component must be delayed, not immediate or factory.AbstractComponentManager.StateSingleComponentManager.SetImplementationObject<S>m_activationLock, m_container, m_factoryInstanceSTATE_ACTIVE, STATE_DISABLED, STATE_DISPOSED, STATE_SATISFIED, STATE_UNSATISFIED_CONFIGURATION, STATE_UNSATISFIED_REFERENCE| Constructor | Description |
|---|---|
ServiceFactoryComponentManager(ComponentContainer<S> container,
ComponentMethods componentMethods) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
deleteComponent(int reason) |
|
org.osgi.service.component.ComponentInstance |
getComponentInstance() |
|
S |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<S> serviceRegistration) |
|
protected MethodResult |
invokeModifiedMethod() |
|
void |
setServiceProperties(Dictionary<String,?> serviceProperties) |
|
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<S> registration,
S service) |
collectDependencies, copyTo, copyToDictionary, copyToMap, disable, dispose, enable, getActivator, getBundle, getComponentMetadata, getId, getName, getProvidedServices, getReferenceManagers, getSpecState, isFactory, isImmediate, isLogEnabled, log, log, registerService, setServiceProperties, toString, unregisterService, verifyDependencyManagersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateImplementationObject, disposeImplementationObject, getComponentManagers, getProperties, getServiceProperties, reconfigure, setFactoryPropertiespublic ServiceFactoryComponentManager(ComponentContainer<S> container, ComponentMethods componentMethods)
container - ComponentHolder for configuration managementcomponentMethods - public void setServiceProperties(Dictionary<String,?> serviceProperties)
setServiceProperties in class SingleComponentManager<S>protected void deleteComponent(int reason)
deleteComponent in class SingleComponentManager<S>public S getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<S> serviceRegistration)
getService in class SingleComponentManager<S>public void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<S> registration,
S service)
ungetService in class SingleComponentManager<S>protected MethodResult invokeModifiedMethod()
invokeModifiedMethod in class SingleComponentManager<S>public org.osgi.service.component.ComponentInstance getComponentInstance()
getComponentInstance in class SingleComponentManager<S>Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.