@Target(value=TYPE) @Retention(value=CLASS) @Documented public @interface Service
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.
Modifier and Type | Optional Element and Description |
---|---|
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.Copyright © 2006–2013 The Apache Software Foundation. All rights reserved.