org.apache.felix.scr.annotations
Annotation Type Service


@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.
 

value

public abstract Class<?> value
The class of the service interface provided by the component. If this property is not set provide elements will be generated for all interfaces generated by the class

Default:
org.apache.felix.scr.annotations.AutoDetect.class

serviceFactory

public abstract boolean serviceFactory
Whether the component is registered as a org.osgi.framework.ServiceFactory or not.

Default:
false


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.