|
||||||||||
| 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(Element metadata,
Dictionary conf)
Configure the handler. |
HandlerDescription |
getDescription()
Get the service instantiator handler description. |
List |
getInstances()
|
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. |
| Methods inherited from class org.apache.felix.ipojo.composite.CompositeHandler |
|---|
attach, getCompositeManager, getHandler, getLogger, setFactory |
| Methods inherited from class org.apache.felix.ipojo.Handler |
|---|
debug, 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(Element metadata,
Dictionary conf)
throws ConfigurationException
configure in class Handlermetadata - : the metadata of the componentconf - : the instance configuration
ConfigurationException - : the specification attribute is missingCompositeHandlerpublic void start()
start in class HandlerCompositeHandlerpublic void stop()
stop in class HandlerCompositeHandlerpublic 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 HandlerCompositeHandlerpublic List getInstances()
public List getRequirements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||