|
||||||||||
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.PrimitiveHandler
org.apache.felix.ipojo.handlers.dependency.DependencyHandler
public class DependencyHandler
The dependency handler manages a list of service dependencies.
Field Summary | |
---|---|
protected static int |
LIST
Dependency Field Type : List. |
protected static int |
SET
Dependency Field Type : Set. |
protected static int |
VECTOR
Dependency field type : Vector The dependency will be injected as a vector. |
Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
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 | |
---|---|
DependencyHandler()
|
Method Summary | |
---|---|
protected void |
checkContext()
Check the validity of the dependencies. |
void |
configure(Element componentMetadata,
Dictionary configuration)
Configure the handler. |
Dependency[] |
getDependencies()
Get the list of managed dependency. |
HandlerDescription |
getDescription()
Get the dependency handler description. |
void |
invalidate(DependencyModel dep)
Invalidate method. |
void |
onCreation(Object instance)
Handler createInstance method. |
void |
start()
Handler start method. |
void |
stop()
Handler stop method. |
void |
validate(DependencyModel dep)
Validate method. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
Methods inherited from class org.apache.felix.ipojo.Handler |
---|
debug, error, error, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, stateChanged, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int VECTOR
protected static final int LIST
protected static final int SET
Constructor Detail |
---|
public DependencyHandler()
Method Detail |
---|
public Dependency[] getDependencies()
public void validate(DependencyModel dep)
validate
in interface DependencyStateListener
dep
- : the dependency becoming RESOLVED.DependencyStateListener.validate(org.apache.felix.ipojo.util.DependencyModel)
public void invalidate(DependencyModel dep)
invalidate
in interface DependencyStateListener
dep
- : the dependency becoming UNRESOLVED or BROKEN.DependencyStateListener.invalidate(org.apache.felix.ipojo.util.DependencyModel)
protected void checkContext()
public void configure(Element componentMetadata, Dictionary configuration) throws ConfigurationException
configure
in class Handler
componentMetadata
- : the component type metadataconfiguration
- : the instance configuration
ConfigurationException
- : one dependency metadata is not correct.org.apache.felix.ipojo.Handler#configure(org.apache.felix.ipojo.InstanceManager, 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 onCreation(Object instance)
onCreation
in class PrimitiveHandler
instance
- : the created objectorg.apache.felix.ipojo.Handler#onCreation(java.lang.Object)
public HandlerDescription getDescription()
getDescription
in class Handler
Handler.getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |