org.apache.felix.dm.impl
Class FactoryConfigurationAdapterServiceImpl.AdapterImpl
java.lang.Object
org.apache.felix.dm.impl.AbstractDecorator
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.
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 |
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
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
-
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 © 2011 Apache Software Foundation. All Rights Reserved.