|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.composite.ImportedService
public class ImportedService
Allows defining an imported service. A service import is the publication of service from the parent composite or global registry inside the composite.
Field Summary | |
---|---|
static String |
COMPOSITE_AND_GLOBAL_SCOPE
Scoping policy: composite+global. |
static String |
COMPOSITE_SCOPE
Scoping policy: composite. |
static String |
GLOBAL_SCOPE
Scoping policy: global. |
Constructor Summary | |
---|---|
ImportedService()
|
Method Summary | |
---|---|
Element |
getElement()
Gets the dependency metadata. |
ImportedService |
setAggregate(boolean agg)
Sets the dependency cardinality. |
ImportedService |
setBindingPolicy(int policy)
Sets the dependency binding policy. |
ImportedService |
setComparator(String cmp)
Sets the dependency comparator. |
ImportedService |
setFilter(String filter)
Sets the dependency filter. |
ImportedService |
setId(String id)
Sets the dependency id. |
ImportedService |
setOptional(boolean opt)
Sets the dependency optionality. |
ImportedService |
setScope(String scope)
Sets the dependency scope. |
ImportedService |
setSpecification(String spec)
Sets the required service specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPOSITE_SCOPE
public static final String GLOBAL_SCOPE
public static final String COMPOSITE_AND_GLOBAL_SCOPE
Constructor Detail |
---|
public ImportedService()
Method Detail |
---|
public Element getElement()
getElement
in interface HandlerConfiguration
public ImportedService setSpecification(String spec)
spec
- the specification
public ImportedService setFilter(String filter)
filter
- the LDAP filter
public ImportedService setOptional(boolean opt)
opt
- true
to set the
dependency to optional.
public ImportedService setAggregate(boolean agg)
agg
- true
to set the
dependency to aggregate.
public ImportedService setBindingPolicy(int policy)
policy
- the binding policy
public ImportedService setComparator(String cmp)
cmp
- the comparator class name
public ImportedService setId(String id)
id
- the dependency id.
public ImportedService setScope(String scope)
scope
- the dependency scope (global, composite or
composite+global).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |