|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=SOURCE) @Documented public @interface Service
The Service
annotation defines whether and which service
interfaces are provided by the component.
This annotation is used to declare <service> and <provide> elements of the component declaration. See section 112.4.6, Service Elements, in the OSGi Service Platform Service Compendium Specification for more information.
Optional Element Summary | |
---|---|
boolean |
serviceFactory
Whether the component is registered as a org.osgi.framework.ServiceFactory or not. |
Class<?> |
value
The class of the service interface provided by the component. |
public abstract Class<?> value
public abstract boolean serviceFactory
org.osgi.framework.ServiceFactory
or not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |