|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scr.impl.ComponentRegistry
org.apache.felix.scr.impl.config.ConfigurationComponentRegistry
public class ConfigurationComponentRegistry
Constructor Summary | |
---|---|
ConfigurationComponentRegistry(BundleContext context)
|
Method Summary | |
---|---|
void |
configurationEvent(ConfigurationEvent event)
Called by the Configuration Admin service if a configuration is updated or removed. |
ComponentHolder |
createComponentHolder(BundleComponentActivator activator,
ComponentMetadata metadata)
Factory method to issue ComponentHolder instances to manage
components described by the given component metadata . |
void |
dispose()
|
Configuration[] |
findFactoryConfigurations(ConfigurationAdmin ca,
String factoryPid)
Returns all configurations whose factory PID equals the given factory PID or null if no such configurations exist |
Configuration |
findSingletonConfiguration(ConfigurationAdmin ca,
String pid)
Returns the configuration whose PID equals the given pid. |
void |
serviceChanged(ServiceEvent event)
Called if the Configuration Admin service changes state. |
Methods inherited from class org.apache.felix.scr.impl.ComponentRegistry |
---|
getComponent, getComponentHolder, getComponents, getComponents, getComponents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationComponentRegistry(BundleContext context)
Method Detail |
---|
public void dispose()
dispose
in class ComponentRegistry
public ComponentHolder createComponentHolder(BundleComponentActivator activator, ComponentMetadata metadata)
ComponentRegistry
ComponentHolder
instances to manage
components described by the given component metadata
.
createComponentHolder
in class ComponentRegistry
public void serviceChanged(ServiceEvent event)
serviceChanged
in interface ServiceListener
event
- The service change eventpublic void configurationEvent(ConfigurationEvent event)
This method is really only called upon configuration changes; it is not
called for existing configurations upon startup of the Configuration
Admin service. To bridge this gap, the
serviceChanged(ServiceEvent)
method called when the
Configuration Admin service is registered calls this method for all
existing configurations to be able to foward existing configurations
to components.
configurationEvent
in interface ConfigurationListener
event
- The configuration change eventpublic Configuration findSingletonConfiguration(ConfigurationAdmin ca, String pid)
null
is returned.
ctx
- pid
-
public Configuration[] findFactoryConfigurations(ConfigurationAdmin ca, String factoryPid)
null
if no such configurations exist
ctx
- factoryPid
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |