Class ComponentFactoryImpl

java.lang.Object
org.apache.felix.dm.runtime.ComponentFactoryImpl
All Implemented Interfaces:
ComponentFactory

public class ComponentFactoryImpl extends Object implements 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 Details

    • ComponentFactoryImpl

      public ComponentFactoryImpl(org.osgi.framework.Bundle b, MetaData srvMeta, List<MetaData> depsMeta)
      Sole constructor.
      Parameters:
      b - the bundle containing the Service annotated with the factory attribute
      srvMeta - the component service metadata
      depsMeta - 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

      public ComponentInstance newInstance(Dictionary<String,?> conf)
      Create or Update a Service.
      Specified by:
      newInstance in interface ComponentFactory
      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.