public class ServiceDependencyHandler extends CompositeHandler implements DependencyStateListener
HANDLER_TYPEHANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid| Constructor and Description |
|---|
ServiceDependencyHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary conf)
Configure the handler.
|
HandlerDescription |
getDescription()
Get the service instantiator handler description.
|
java.util.List |
getInstances() |
java.util.List |
getRequirements() |
void |
invalidate(DependencyModel dep)
A service instance becomes invalid.
|
void |
start()
Start the service instantiator handler.
|
void |
stateChanged(int newState)
State change callback.
|
void |
stop()
Handler stop method.
|
void |
validate(DependencyModel dep)
An service instance becomes valid.
|
attach, getCompositeManager, getHandler, getLogger, setFactorydebug, error, error, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, warn, warnpublic void configure(org.apache.felix.ipojo.metadata.Element metadata, java.util.Dictionary conf) throws ConfigurationException
configure in class Handlermetadata - : the metadata of the componentconf - : the instance configurationConfigurationException - : the specification attribute is missingHandler.configure(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)public void start()
start in class HandlerHandler.start()public void stop()
stop in class HandlerHandler.stop()public void stateChanged(int newState)
stateChanged in class HandlernewState - : the new state of the underlying instanceHandler.stateChanged(int)public void validate(DependencyModel dep)
validate in interface DependencyStateListenerdep - : dependency becoming valid.public void invalidate(DependencyModel dep)
invalidate in interface DependencyStateListenerdep - : dependency becoming valid.public HandlerDescription getDescription()
getDescription in class HandlerHandler.getDescription()public java.util.List getInstances()
public java.util.List getRequirements()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.