@Target(value=TYPE) @Retention(value=CLASS) @Documented @Deprecated 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
Deprecated.
Whether the component is registered as a
org.osgi.framework.ServiceFactory or not. |
Class<?>[] |
value
Deprecated.
The class of the service interface provided by the component.
|
public abstract Class<?>[] value
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.