|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.Handler
org.apache.felix.ipojo.composite.CompositeHandler
org.apache.felix.ipojo.composite.service.instantiator.ServiceDependencyHandler
public class ServiceDependencyHandler
Service Instantiator Class. This handler allows to instantiate service instance inside the composition.
| Field Summary |
|---|
| Fields inherited from class org.apache.felix.ipojo.composite.CompositeHandler |
|---|
HANDLER_TYPE |
| Fields inherited from class org.apache.felix.ipojo.Handler |
|---|
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid |
| Constructor Summary | |
|---|---|
ServiceDependencyHandler()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary conf)
Configure the handler. |
org.apache.felix.ipojo.architecture.HandlerDescription |
getDescription()
Get the service instantiator handler description. |
java.util.List |
getInstances()
|
java.util.List |
getRequirements()
|
void |
invalidate(org.apache.felix.ipojo.util.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(org.apache.felix.ipojo.util.DependencyModel dep)
An service instance becomes valid. |
| Methods inherited from class org.apache.felix.ipojo.composite.CompositeHandler |
|---|
attach, getCompositeManager, getHandler, getLogger, setFactory |
| Methods inherited from class org.apache.felix.ipojo.Handler |
|---|
error, error, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceDependencyHandler()
| Method Detail |
|---|
public void configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary conf)
throws org.apache.felix.ipojo.ConfigurationException
configure in class org.apache.felix.ipojo.Handlermetadata - : the metadata of the componentconf - : the instance configuration
org.apache.felix.ipojo.ConfigurationException - : the specification attribute is missingorg.apache.felix.ipojo.CompositeHandler#configure(org.apache.felix.ipojo.CompositeManager, org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)public void start()
start in class org.apache.felix.ipojo.Handlerorg.apache.felix.ipojo.CompositeHandler#start()public void stop()
stop in class org.apache.felix.ipojo.Handlerorg.apache.felix.ipojo.CompositeHandler#stop()public void stateChanged(int newState)
stateChanged in class org.apache.felix.ipojo.HandlernewState - : the new state of the underlying instanceHandler.stateChanged(int)public void validate(org.apache.felix.ipojo.util.DependencyModel dep)
validate in interface org.apache.felix.ipojo.util.DependencyStateListenerdep - : dependency becoming valid.public void invalidate(org.apache.felix.ipojo.util.DependencyModel dep)
invalidate in interface org.apache.felix.ipojo.util.DependencyStateListenerdep - : dependency becoming valid.public org.apache.felix.ipojo.architecture.HandlerDescription getDescription()
getDescription in class org.apache.felix.ipojo.Handlerorg.apache.felix.ipojo.CompositeHandler#getDescription()public java.util.List getInstances()
public java.util.List getRequirements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||