public class Dependency extends java.lang.Object implements HandlerConfiguration
Modifier and Type | Field and Description |
---|---|
static int |
DYNAMIC
The dynamic binding policy.
|
static int |
DYNAMIC_PRIORITY
The dynamic-priority binding policy.
|
static int |
STATIC
The static binding policy.
|
Constructor and Description |
---|
Dependency() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int DYNAMIC
public static final int STATIC
public static final int DYNAMIC_PRIORITY
public org.apache.felix.ipojo.metadata.Element getElement()
getElement
in interface HandlerConfiguration
public Dependency setSpecification(java.lang.String spec)
spec
- the specificationpublic Dependency setFilter(java.lang.String filter)
filter
- the LDAP filterpublic Dependency setField(java.lang.String field)
field
- the implementation class field name.public Dependency setConstructorParameter(int index)
index
- the parameter indexpublic 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 injectionpublic 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 namepublic Dependency setUnbindMethod(java.lang.String unbind)
unbind
- the unbind methodpublic Dependency setModifiedMethod(java.lang.String modified)
modified
- the modified methodpublic Dependency setBindingPolicy(int policy)
policy
- the binding policypublic Dependency setComparator(java.lang.String cmp)
cmp
- the comparator class namepublic Dependency setDefaultImplementation(java.lang.String di)
di
- the default-implementation class namepublic 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 dependencynull
if the dependency cannot be found.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.