|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.Dependency
public class Dependency
Allows configuring a service dependencies.
Field Summary | |
---|---|
static int |
DYNAMIC
The dynamic binding policy. |
static int |
DYNAMIC_PRIORITY
The dynamic-priority binding policy. |
static int |
STATIC
The static binding policy. |
Constructor Summary | |
---|---|
Dependency()
|
Method Summary | |
---|---|
DependencyDescription |
getDependencyDescription(ComponentInstance instance)
Gets the dependency description object attached to this dependency. |
org.apache.felix.ipojo.metadata.Element |
getElement()
Gets the dependency metadata. |
Dependency |
setAggregate(boolean agg)
Sets the dependency cardinality. |
Dependency |
setBindingPolicy(int policy)
Sets the dependency binding policy. |
Dependency |
setBindMethod(java.lang.String bind)
Sets the dependency bind method. |
Dependency |
setComparator(java.lang.String cmp)
Sets the dependency comparator. |
Dependency |
setConstructorParameter(int index)
Sets the constructor parameter index of the dependency. |
Dependency |
setDefaultImplementation(java.lang.String di)
Sets the dependency default-implementation. |
Dependency |
setField(java.lang.String field)
Sets the field attached to the dependency. |
Dependency |
setFilter(java.lang.String filter)
Sets the dependency filter. |
Dependency |
setFrom(java.lang.String from)
Sets the dependency 'from' attribute. |
Dependency |
setId(java.lang.String id)
Sets the dependency id. |
Dependency |
setModifiedMethod(java.lang.String modified)
Sets the dependency modified method. |
Dependency |
setNullable(boolean nullable)
Sets if the dependency supports nullable objects. |
Dependency |
setOptional(boolean opt)
Sets the dependency optionality. |
Dependency |
setProxy(boolean proxy)
Sets if the dependency injects proxies. |
Dependency |
setSpecification(java.lang.String spec)
Sets the required service specification. |
Dependency |
setUnbindMethod(java.lang.String unbind)
Sets the dependency unbind method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DYNAMIC
public static final int STATIC
public static final int DYNAMIC_PRIORITY
Constructor Detail |
---|
public Dependency()
Method Detail |
---|
public org.apache.felix.ipojo.metadata.Element getElement()
getElement
in interface HandlerConfiguration
public Dependency setSpecification(java.lang.String spec)
spec
- the specification
public Dependency setFilter(java.lang.String filter)
filter
- the LDAP filter
public Dependency setField(java.lang.String field)
field
- the implementation class field name.
public Dependency setConstructorParameter(int index)
index
- the parameter index
public Dependency setOptional(boolean opt)
opt
- true
to set the
dependency to optional.
public Dependency setAggregate(boolean agg)
agg
- true
to set the
dependency to aggregate.
public Dependency setNullable(boolean nullable)
nullable
- false
if the dependency does not
support the nullable object injection
public Dependency setProxy(boolean proxy)
proxy
- false
if the dependency does not
inject proxies but uses direct references.
public Dependency setBindMethod(java.lang.String bind)
bind
- the bind method name
public Dependency setUnbindMethod(java.lang.String unbind)
unbind
- the unbind method
public Dependency setModifiedMethod(java.lang.String modified)
modified
- the modified method
public Dependency setBindingPolicy(int policy)
policy
- the binding policy
public Dependency setComparator(java.lang.String cmp)
cmp
- the comparator class name
public Dependency setDefaultImplementation(java.lang.String di)
di
- the default-implementation class name
public Dependency setFrom(java.lang.String from)
from
- the name of the service provider.
public Dependency setId(java.lang.String id)
id
- the dependency id.
public DependencyDescription getDependencyDescription(ComponentInstance instance)
instance
- the instance on which searching the dependency
null
if the dependency cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |