public class ConfigurationHandlerDescription extends HandlerDescription
Constructor and Description |
---|
ConfigurationHandlerDescription(ConfigurationHandler handler,
java.util.List props,
java.lang.String pid)
Creates the description object for the configuration handler description.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(ConfigurationListener listener)
Add the given listener to the configuration handler's list of listeners.
|
org.apache.felix.ipojo.metadata.Element |
getHandlerInfo()
The handler information.
|
java.lang.String |
getManagedServicePid()
Gets the managed service pid.
|
PropertyDescription[] |
getProperties()
Gets the properties.
|
PropertyDescription |
getPropertyByName(java.lang.String name)
Gets a property by name.
|
void |
removeListener(ConfigurationListener listener)
Remove the given listener from the configuration handler's list of listeners.
|
getHandlerName, isValid
public ConfigurationHandlerDescription(ConfigurationHandler handler, java.util.List props, java.lang.String pid)
handler
- the configuration handler.props
- the list of properties.pid
- the managed service pid or null
if not set.public org.apache.felix.ipojo.metadata.Element getHandlerInfo()
getHandlerInfo
in class HandlerDescription
HandlerDescription.getHandlerInfo()
public PropertyDescription[] getProperties()
public PropertyDescription getPropertyByName(java.lang.String name)
name
- the property namenull
if there is no property with the given name.public java.lang.String getManagedServicePid()
null
if not set.public void addListener(ConfigurationListener listener)
listener
- the ConfigurationListener
object to be addedjava.lang.NullPointerException
- if listener
is null
public void removeListener(ConfigurationListener listener)
listener
- the ConfigurationListener
object to be removedjava.lang.NullPointerException
- if listener
is null
java.util.NoSuchElementException
- if listener
wasn't present the in configuration handler's list of listenersCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.