org.apache.felix.dm.impl
Class FactoryConfigurationAdapterServiceImpl.AdapterImpl

java.lang.Object
  extended by org.apache.felix.dm.impl.AbstractDecorator
      extended by org.apache.felix.dm.impl.FactoryConfigurationAdapterServiceImpl.AdapterImpl
All Implemented Interfaces:
ManagedServiceFactory
Enclosing class:
FactoryConfigurationAdapterServiceImpl

public class FactoryConfigurationAdapterServiceImpl.AdapterImpl
extends AbstractDecorator
implements ManagedServiceFactory

Creates, updates, or removes a service, when a ConfigAdmin factory configuration is created/updated or deleted.


Field Summary
protected  DependencyManager m_dm
           
protected  String m_factoryPid
           
protected  boolean m_propagate
           
protected  String m_update
           
 
Fields inherited from class org.apache.felix.dm.impl.AbstractDecorator
m_manager
 
Constructor Summary
FactoryConfigurationAdapterServiceImpl.AdapterImpl(String factoryPid, String updateMethod, boolean propagate)
          Creates a new CM factory configuration adapter.
 
Method Summary
 Component createService(Object[] properties)
          Method called from our superclass, when we need to create a service.
 String getName()
          Returns the managed service factory name.
 void updateService(Object[] properties)
          Method called from our superclass, when we need to update a Service, because the configuration has changed.
 
Methods inherited from class org.apache.felix.dm.impl.AbstractDecorator
addDependencies, addDependency, added, added, added, addStateListener, configureAutoConfigState, deleted, removed, removed, removed, removeDependency, removeStateListener, setServiceProperties, stop, updated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.osgi.service.cm.ManagedServiceFactory
deleted, updated
 

Field Detail

m_dm

protected volatile DependencyManager m_dm

m_factoryPid

protected String m_factoryPid

m_update

protected String m_update

m_propagate

protected boolean m_propagate
Constructor Detail

FactoryConfigurationAdapterServiceImpl.AdapterImpl

public FactoryConfigurationAdapterServiceImpl.AdapterImpl(String factoryPid,
                                                          String updateMethod,
                                                          boolean propagate)
Creates a new CM factory configuration adapter.

Parameters:
factoryPid -
updateMethod -
adapterInterface -
adapterImplementation -
adapterProperties -
propagate -
Method Detail

getName

public String getName()
Returns the managed service factory name.

Specified by:
getName in interface ManagedServiceFactory
Returns:
the name for the factory, which might be localized

createService

public Component createService(Object[] properties)
Method called from our superclass, when we need to create a service.

Specified by:
createService in class AbstractDecorator

updateService

public void updateService(Object[] properties)
Method called from our superclass, when we need to update a Service, because the configuration has changed.

Overrides:
updateService in class AbstractDecorator


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.