public class ServiceDependencyHandler extends CompositeHandler implements DependencyStateListener
HANDLER_TYPE
HANDLER_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, setFactory
debug, error, error, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, warn, warn
public void configure(org.apache.felix.ipojo.metadata.Element metadata, java.util.Dictionary conf) throws ConfigurationException
configure
in class Handler
metadata
- : 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 Handler
Handler.start()
public void stop()
stop
in class Handler
Handler.stop()
public void stateChanged(int newState)
stateChanged
in class Handler
newState
- : the new state of the underlying instanceHandler.stateChanged(int)
public void validate(DependencyModel dep)
validate
in interface DependencyStateListener
dep
- : dependency becoming valid.public void invalidate(DependencyModel dep)
invalidate
in interface DependencyStateListener
dep
- : dependency becoming valid.public HandlerDescription getDescription()
getDescription
in class Handler
Handler.getDescription()
public java.util.List getInstances()
public java.util.List getRequirements()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.