|
||||||||||
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.handler.temporal.TemporalHandler
public class TemporalHandler
Temporal dependency handler. A temporal dependency waits (block) for the availability of the service. If no provider arrives in the specified among of time, a runtime exception is thrown.
Field Summary | |
---|---|
static int |
DEFAULT_IMPLEMENTATION
Uses a default-implementation object. |
static int |
DEFAULT_TIMEOUT
Default timeout if not specified. |
static int |
EMPTY
Uses an empty array. |
static String |
NAMESPACE
The handler namespace. |
static int |
NO_POLICY
No policy. |
static int |
NULL
Uses null . |
static int |
NULLABLE
Uses a nullable object. |
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 | |
---|---|
TemporalHandler()
|
Method Summary | |
---|---|
void |
configure(Element meta,
Dictionary dictionary)
Configure method. |
void |
invalidate(DependencyModel dependencymodel)
Nothing to do. |
void |
start()
Start method. |
void |
stop()
Stop method. |
void |
validate(DependencyModel dependencymodel)
Nothing to do. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
Methods inherited from class org.apache.felix.ipojo.Handler |
---|
debug, error, error, getDescription, 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 |
---|
public static final int DEFAULT_TIMEOUT
public static final int NO_POLICY
public static final int NULLABLE
public static final int DEFAULT_IMPLEMENTATION
public static final int EMPTY
public static final int NULL
null
.
public static final String NAMESPACE
Constructor Detail |
---|
public TemporalHandler()
Method Detail |
---|
public void start()
start
in class Handler
Handler.start()
public void stop()
stop
in class Handler
Handler.stop()
public void configure(Element meta, Dictionary dictionary) throws ConfigurationException
configure
in class Handler
meta
- the component type metadata.dictionary
- the instance configuration.
ConfigurationException
- if the dependency is not configured correctlyHandler.configure(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)
public void invalidate(DependencyModel dependencymodel)
invalidate
in interface DependencyStateListener
dependencymodel
- dependency.DependencyStateListener.invalidate(org.apache.felix.ipojo.util.DependencyModel)
public void validate(DependencyModel dependencymodel)
validate
in interface DependencyStateListener
dependencymodel
- dependency.DependencyStateListener.validate(org.apache.felix.ipojo.util.DependencyModel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |