|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.Handler
org.apache.felix.ipojo.PrimitiveHandler
org.apache.felix.ipojo.handlers.configuration.ConfigurationHandler
public class ConfigurationHandler
Handler managing the Configuration Admin.
Field Summary |
---|
Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
HANDLER_TYPE |
Fields inherited from class org.apache.felix.ipojo.Handler |
---|
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid |
Constructor Summary | |
---|---|
ConfigurationHandler()
|
Method Summary | |
---|---|
protected void |
addProperty(Property prop)
Add the given property metadata to the property metadata list. |
void |
configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary configuration)
Configure the handler. |
protected boolean |
containsProperty(java.lang.String name)
Check if the list contains the property. |
void |
initializeComponentFactory(ComponentTypeDescription desc,
org.apache.felix.ipojo.metadata.Element metadata)
Initialize the component type. |
void |
onCreation(java.lang.Object instance)
Handler createInstance method. |
void |
reconfigure(java.util.Dictionary configuration)
Reconfigure the component instance. |
void |
start()
Start method. |
void |
stop()
Stop method. |
void |
updated(java.util.Dictionary conf)
Managed Service method. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getFactory, getHandler, getInstanceManager, getLogger, getMetadata, getPojoMetadata, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
Methods inherited from class org.apache.felix.ipojo.Handler |
---|
error, error, getDescription, getHandlerManager, getValidity, info, isValid, setValidity, stateChanged, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationHandler()
Method Detail |
---|
public void initializeComponentFactory(ComponentTypeDescription desc, org.apache.felix.ipojo.metadata.Element metadata) throws ConfigurationException
initializeComponentFactory
in class Handler
desc
- : component type description to populate.metadata
- : component type metadata.
ConfigurationException
- : metadata are incorrect.Handler.initializeComponentFactory(org.apache.felix.ipojo.architecture.ComponentTypeDescription, org.apache.felix.ipojo.metadata.Element)
public void configure(org.apache.felix.ipojo.metadata.Element metadata, java.util.Dictionary configuration) throws ConfigurationException
configure
in class Handler
metadata
- : the metadata of the componentconfiguration
- : the instance configuration
ConfigurationException
- : one property metadata is not correctorg.apache.felix.ipojo.Handler#configure(org.apache.felix.ipojo.InstanceManager,
org.apache.felix.ipojo.metadata.Element)
public void stop()
stop
in class Handler
Handler.stop()
public void start()
start
in class Handler
Handler.start()
protected void addProperty(Property prop)
prop
- : property metadata to addprotected boolean containsProperty(java.lang.String name)
name
- : name of the property
public void reconfigure(java.util.Dictionary configuration)
reconfigure
in class Handler
configuration
- : the new configurationHandler.reconfigure(java.util.Dictionary)
public void onCreation(java.lang.Object instance)
onCreation
in class PrimitiveHandler
instance
- : the created objectorg.apache.felix.ipojo.Handler#onCreation(java.lang.Object)
public void updated(java.util.Dictionary conf) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedService
conf
- : pushed configuration.
org.osgi.service.cm.ConfigurationException
- the reconfiguration failed.ManagedService.updated(java.util.Dictionary)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |