|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.composite.InstantiatedService
public class InstantiatedService
Allows defining an instantiated sub-service. An instantiated sub- service will be reified by instances publishing the required service. Those instances are created from public factories inside the composite.
Constructor Summary | |
---|---|
InstantiatedService()
|
Method Summary | |
---|---|
InstantiatedService |
addProperty(String name,
Dictionary values)
Adds a dictionary property. |
InstantiatedService |
addProperty(String name,
List values)
Adds a list property. |
InstantiatedService |
addProperty(String name,
Map values)
Adds a map property. |
InstantiatedService |
addProperty(String name,
String value)
Adds a string property. |
InstantiatedService |
addProperty(String name,
String[] values)
Adds an array property. |
InstantiatedService |
addProperty(String name,
Vector values)
Adds a vector property. |
Element |
getElement()
Gets the dependency metadata. |
InstantiatedService |
setAggregate(boolean agg)
Sets the dependency cardinality. |
InstantiatedService |
setBindingPolicy(int policy)
Sets the dependency binding policy. |
InstantiatedService |
setComparator(String cmp)
Sets the dependency comparator. |
InstantiatedService |
setFilter(String filter)
Sets the dependency filter. |
InstantiatedService |
setOptional(boolean opt)
Sets the dependency optionality. |
InstantiatedService |
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 |
Constructor Detail |
---|
public InstantiatedService()
Method Detail |
---|
public Element getElement()
getElement
in interface HandlerConfiguration
public InstantiatedService addProperty(String name, String value)
name
- the property namevalue
- the property value
public InstantiatedService addProperty(String name, List values)
name
- the property namevalues
- the property value
public InstantiatedService addProperty(String name, String[] values)
name
- the property namevalues
- the property value
public InstantiatedService addProperty(String name, Vector values)
name
- the property namevalues
- the property value
public InstantiatedService addProperty(String name, Map values)
name
- the property namevalues
- the property value
public InstantiatedService addProperty(String name, Dictionary values)
name
- the property namevalues
- the property value
public InstantiatedService setSpecification(String spec)
spec
- the specification
public InstantiatedService setFilter(String filter)
filter
- the LDAP filter
public InstantiatedService setOptional(boolean opt)
opt
- true
to set the dependency to optional.
public InstantiatedService setAggregate(boolean agg)
agg
- true
to set the dependency to aggregate.
public InstantiatedService setBindingPolicy(int policy)
policy
- the binding policy
public InstantiatedService setComparator(String cmp)
cmp
- the comparator class name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |