public class ProvidedServiceHandler extends CompositeHandler implements DependencyStateListener
HANDLER_TYPEHANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid| Constructor and Description |
|---|
ProvidedServiceHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary configuration)
Configure the handler.
|
HandlerDescription |
getDescription() |
java.util.List |
getInstanceType() |
protected java.util.List |
getSpecifications()
Build the list of available specification.
|
void |
initializeComponentFactory(ComponentTypeDescription desc,
org.apache.felix.ipojo.metadata.Element metadata)
Initialize the component type.
|
void |
invalidate(DependencyModel exporter)
Notify the handler that an exporter becomes invalid.
|
void |
start()
Start method.
|
void |
stateChanged(int state)
Handler state changed.
|
void |
stop()
Stop method.
|
void |
validate(DependencyModel exporter)
Notify the handler that an exporter becomes valid.
|
attach, getCompositeManager, getHandler, getLogger, setFactorydebug, error, error, getHandlerManager, getValidity, info, isValid, reconfigure, setValidity, warn, warnpublic void initializeComponentFactory(ComponentTypeDescription desc, org.apache.felix.ipojo.metadata.Element metadata) throws ConfigurationException
initializeComponentFactory in class Handlerdesc - : 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 Handlermetadata - : the metadata of the componentconfiguration - : the instance configurationConfigurationException - : the exporter cannot be createdHandler.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 state)
stateChanged in class Handlerstate - : the new instance state.Handler.stateChanged(int)public void invalidate(DependencyModel exporter)
invalidate in interface DependencyStateListenerexporter - : the implicated exporter.public void validate(DependencyModel exporter)
validate in interface DependencyStateListenerexporter - : the implicated exporter.protected java.util.List getSpecifications()
public HandlerDescription getDescription()
getDescription in class Handlerpublic java.util.List getInstanceType()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.