|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scr.impl.config.ConfiguredComponentHolder
public class ConfiguredComponentHolder
The ConfiguredComponentHolder
class is a
ComponentHolder
for one or more components instances configured by
singleton or factory configuration objects received from the Configuration
Admin service.
This holder is used only for components configured (optionally or required) by the Configuration Admin service. It is not used for components declared as ignoring configuration or if no Configuration Admin service is available.
The holder copes with three situations:
service.pid
or
service.factoryPid
equals the component name.service.pid
equals the component name.service.factoryPid
equals the component name.
Method Summary | |
---|---|
void |
configurationDeleted(String pid)
The configuration with the given pid
(service.pid of the configuration object) is deleted. |
void |
configurationUpdated(String pid,
Dictionary props)
Configures a component with the given configuration. |
protected ImmediateComponentManager |
createComponentManager()
|
void |
disableComponents()
Disables all components of this holder. |
void |
disposeComponents(int reason)
Disposes off all components of this holder. |
void |
disposed(ImmediateComponentManager component)
Informs the holder that the component has been disposed as a result of calling the dispose method. |
void |
enableComponents()
Enables all components of this holder. |
BundleComponentActivator |
getActivator()
Returns the BundleComponentActivator owning this component
holder. |
ComponentMetadata |
getComponentMetadata()
Returns the ComponentMetadata describing and declaring this
component. |
protected String |
getComponentName()
|
Component[] |
getComponents()
Returns all Component instances held by this holder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void configurationDeleted(String pid)
pid
(service.pid
of the configuration object) is deleted.
The following situations are supported:
pid
- The PID of the deleted configurationpublic void configurationUpdated(String pid, Dictionary props)
pid
equals the component name. Hence we have a
singleton configuration for the single component held by this holder
pid
- The PID of the configuration used to configure the componentpublic Component[] getComponents()
ComponentHolder
Component
instances held by this holder.
public void enableComponents()
ComponentHolder
public void disableComponents()
ComponentHolder
public void disposeComponents(int reason)
ComponentHolder
public void disposed(ImmediateComponentManager component)
ComponentHolder
protected ImmediateComponentManager createComponentManager()
public final BundleComponentActivator getActivator()
ComponentHolder
BundleComponentActivator
owning this component
holder.
getActivator
in interface ComponentHolder
public final ComponentMetadata getComponentMetadata()
ComponentHolder
ComponentMetadata
describing and declaring this
component.
getComponentMetadata
in interface ComponentHolder
protected final String getComponentName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |