|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.TemporalDependency
public class TemporalDependency
Allows configuring a service dependencies.
Field Summary | |
---|---|
static String |
EMPTY
OnTimeout policy: empty array or collection. |
static String |
NULL
OnTimeout policy: inject null. |
static String |
NULLABLE
OnTimeout policy: nullable object. |
Constructor Summary | |
---|---|
TemporalDependency()
|
Method Summary | |
---|---|
Element |
getElement()
Gets the dependency metadata. |
TemporalDependency |
setField(String field)
Sets the field attached to the dependency. |
TemporalDependency |
setFilter(String filter)
Sets the dependency filter. |
TemporalDependency |
setOnTimeoutPolicy(String tip)
Sets the dependency ontimeout policy. |
TemporalDependency |
setProxy(boolean proxy)
Sets if the dependency is injected as a proxy. |
TemporalDependency |
setSpecification(String spec)
Sets the required service specification. |
TemporalDependency |
setTimeout(long time)
Sets the dependency timeout. |
TemporalDependency |
setTimeout(String time)
Sets the dependency timeout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NULLABLE
public static final String EMPTY
public static final String NULL
Constructor Detail |
---|
public TemporalDependency()
Method Detail |
---|
public Element getElement()
getElement
in interface HandlerConfiguration
public TemporalDependency setSpecification(String spec)
spec
- the specification
public TemporalDependency setFilter(String filter)
filter
- the LDAP filter
public TemporalDependency setField(String field)
field
- the implementation class field name.
public TemporalDependency setProxy(boolean proxy)
proxy
- true
to inject proxies.
public TemporalDependency setTimeout(String time)
time
- the dependency timeout in ms
'infinite' for infinite.
public TemporalDependency setTimeout(long time)
time
- the dependency timeout in ms
public TemporalDependency setOnTimeoutPolicy(String tip)
tip
- the ontimeout policy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |