|
||||||||||
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. |
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(String bind)
Sets the dependency bind method. |
Dependency |
setComparator(String cmp)
Sets the dependency comparator. |
Dependency |
setDefaultImplementation(String di)
Sets the dependency default-implementation. |
Dependency |
setField(String field)
Sets the field attached to the dependency. |
Dependency |
setFilter(String filter)
Sets the dependency filter. |
Dependency |
setFrom(String from)
Sets the dependency 'from' attribute. |
Dependency |
setId(String id)
Sets the dependency id. |
Dependency |
setModifiedMethod(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(String spec)
Sets the required service specification. |
Dependency |
setUnbindMethod(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 Element getElement()
getElement
in interface HandlerConfiguration
public Dependency setSpecification(String spec)
spec
- the specification
public Dependency setFilter(String filter)
filter
- the LDAP filter
public Dependency setField(String field)
field
- the implementation class field name.
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(String bind)
bind
- the bind method name
public Dependency setUnbindMethod(String unbind)
unbind
- the unbind method
public Dependency setModifiedMethod(String modified)
modified
- the modified method
public Dependency setBindingPolicy(int policy)
policy
- the binding policy
public Dependency setComparator(String cmp)
cmp
- the comparator class name
public Dependency setDefaultImplementation(String di)
di
- the default-implementation class name
public Dependency setFrom(String from)
from
- the name of the service provider.
public Dependency setId(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 |