public class ProvidedServiceHandler 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 |
---|
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, setFactory
debug, error, error, getHandlerManager, getValidity, info, isValid, reconfigure, setValidity, warn, warn
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 configurationConfigurationException
- : the exporter cannot be createdHandler.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 state)
stateChanged
in class Handler
state
- : the new instance state.Handler.stateChanged(int)
public void invalidate(DependencyModel exporter)
invalidate
in interface DependencyStateListener
exporter
- : the implicated exporter.public void validate(DependencyModel exporter)
validate
in interface DependencyStateListener
exporter
- : the implicated exporter.protected java.util.List getSpecifications()
public HandlerDescription getDescription()
getDescription
in class Handler
public java.util.List getInstanceType()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.