Package org.apache.felix.dm.runtime
Class ComponentFactoryImpl
java.lang.Object
org.apache.felix.dm.runtime.ComponentFactoryImpl
- All Implemented Interfaces:
ComponentFactory
This class implements a DM Component factory service.
When a
Component contains a factoryName attribute, this class is provided
into the OSGi registry with a org.apache.felix.dependencymanager.factory.name service property.- Author:
- Felix Project Team
-
Constructor Summary
ConstructorsConstructorDescriptionComponentFactoryImpl(org.osgi.framework.Bundle b, MetaData srvMeta, List<MetaData> depsMeta) Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(Dictionary<String, ?> conf) Create or Update a Service.voidstart(org.apache.felix.dm.Component c) Our Service is starting.voidstop()Our Service is stopping.
-
Constructor Details
-
ComponentFactoryImpl
Sole constructor.- Parameters:
b- the bundle containing the Service annotated with the factory attributesrvMeta- the component service metadatadepsMeta- teh component dependencies metadata
-
-
Method Details
-
start
public void start(org.apache.felix.dm.Component c) Our Service is starting. -
stop
public void stop()Our Service is stopping. -
newInstance
Create or Update a Service.- Specified by:
newInstancein interfaceComponentFactory- Parameters:
conf- the properties passed to the component "configure" method which is specified with the "configure" attribute of the @Component annotation.- Returns:
- the component instance.
-