public class ImportedService extends java.lang.Object implements HandlerConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPOSITE_AND_GLOBAL_SCOPE
Scoping policy: composite+global.
|
static java.lang.String |
COMPOSITE_SCOPE
Scoping policy: composite.
|
static java.lang.String |
GLOBAL_SCOPE
Scoping policy: global.
|
Constructor and Description |
---|
ImportedService() |
Modifier and Type | Method and Description |
---|---|
org.apache.felix.ipojo.metadata.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(java.lang.String cmp)
Sets the dependency comparator.
|
ImportedService |
setFilter(java.lang.String filter)
Sets the dependency filter.
|
ImportedService |
setId(java.lang.String id)
Sets the dependency id.
|
ImportedService |
setOptional(boolean opt)
Sets the dependency optionality.
|
ImportedService |
setScope(java.lang.String scope)
Sets the dependency scope.
|
ImportedService |
setSpecification(java.lang.String spec)
Sets the required service specification.
|
public static final java.lang.String COMPOSITE_SCOPE
public static final java.lang.String GLOBAL_SCOPE
public static final java.lang.String COMPOSITE_AND_GLOBAL_SCOPE
public org.apache.felix.ipojo.metadata.Element getElement()
getElement
in interface HandlerConfiguration
public ImportedService setSpecification(java.lang.String spec)
spec
- the specificationpublic ImportedService setFilter(java.lang.String filter)
filter
- the LDAP filterpublic 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 policypublic ImportedService setComparator(java.lang.String cmp)
cmp
- the comparator class namepublic ImportedService setId(java.lang.String id)
id
- the dependency id.public ImportedService setScope(java.lang.String scope)
scope
- the dependency scope (global, composite or
composite+global).Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.