public 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.SingleComponentManager.SetImplementationObject<S>
AbstractComponentManager.State
m_activationLock, m_container, m_factoryInstance
STATE_ACTIVE, STATE_DISPOSED, STATE_SATISFIED, STATE_UNSATISFIED_CONFIGURATION, STATE_UNSATISFIED_REFERENCE
Constructor and Description |
---|
ServiceFactoryComponentManager(ComponentContainer<S> container,
ComponentMethods<S> componentMethods) |
Modifier and Type | Method and 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) |
createImplementationObject, disposeImplementationObject, getComponentManagers, getProperties, getServiceProperties, getServiceRegistration, reconfigure, setFactoryProperties
collectDependencies, copyTo, copyToDictionary, copyToMap, disable, dispose, enable, getActivator, getBundle, getComponentMetadata, getFailureReason, getId, getLogger, getProvidedServices, getReferenceManagers, getRegisteredServiceReference, getSpecState, isFactory, isImmediate, registerService, setFailureReason, setServiceProperties, toString, unregisterService, verifyDependencyManagers
public ServiceFactoryComponentManager(ComponentContainer<S> container, ComponentMethods<S> 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 interface org.osgi.framework.ServiceFactory<S>
getService
in class SingleComponentManager<S>
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<S> registration, S service)
ungetService
in interface org.osgi.framework.ServiceFactory<S>
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–2020 The Apache Software Foundation. All rights reserved.