|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Inherited @Retention(value=RUNTIME) @Target(value=METHOD) public @interface ServiceReference
Marks a method (typically a JavaBean setter method) as requiring an OSGi service reference.
Optional Element Summary | |
---|---|
ServiceReferenceCardinality |
cardinality
The cardinality of the service reference, defaults to mandatory. |
ServiceReferenceClassLoader |
contextClassLoader
The invocation context classloader setting. |
String |
filter
filter used to narrow service matches, may be null |
String |
serviceBeanName
The name of the bean that backs the injected service. |
Class<?>[] |
serviceTypes
Interface (or class) of the service to be injected |
int |
timeout
Timeout for service resolution in milliseconds. |
public abstract String serviceBeanName
public abstract ServiceReferenceCardinality cardinality
public abstract ServiceReferenceClassLoader contextClassLoader
public abstract int timeout
public abstract Class<?>[] serviceTypes
public abstract String filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |