Class ComponentFactoryImpl<S>

  • All Implemented Interfaces:
    ComponentContainer<S>, ComponentManager<S>, org.osgi.service.component.ComponentFactory<S>

    public class ComponentFactoryImpl<S>
    extends AbstractComponentManager<S>
    implements org.osgi.service.component.ComponentFactory<S>, ComponentContainer<S>
    The ComponentFactoryImpl extends the AbstractComponentManager class to implement the component factory functionality. As such the OSGi Declarative Services ComponentFactory interface is implemented.

    In addition the ComponentHolder interface is implemented to use this class directly as the holder for component instances created by the newInstance(Dictionary) method.

    This class implements spec-compliant component factories and the felix "persistent" component factory, where the factory is always registered whether or not all dependencies are present and the created components also persist whether or not the dependencies are present to allow the component instance to exist.