|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.composite.ProvidedService
public class ProvidedService
Allows defining a provided service. A provided service is a service 'implemented' by the composite. This implementations relies (by delegation) on contained instances and services.
Field Summary | |
---|---|
static String |
ALL_POLICY
Delegation policy: all. |
static String |
ONE_POLICY
Delegation policy: one. |
Constructor Summary | |
---|---|
ProvidedService()
|
Method Summary | |
---|---|
Element |
getElement()
Gets the provided element. |
ProvidedService |
setDelegation(String method,
String policy)
Sets the delegation policy of the given method. |
ProvidedService |
setSpecification(String spec)
Sets the provided 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 ALL_POLICY
public static final String ONE_POLICY
Constructor Detail |
---|
public ProvidedService()
Method Detail |
---|
public Element getElement()
getElement
in interface HandlerConfiguration
public ProvidedService setSpecification(String spec)
spec
- the specification
public ProvidedService setDelegation(String method, String policy)
method
- the method namepolicy
- the delegation policy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |