org.apache.felix.scr.annotations

## Annotation Type Service

Deprecated.
Use the OSGi annotations from org.osgi.service.component.annotations.*

    @Target(value=TYPE)
    @Retention(value=CLASS)
    @Documented
    @Deprecated
    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

Optional Elements
`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.

### Element Detail

#### value

    public abstract Class<?>[] value

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

Deprecated.
Whether the component is registered as a `org.osgi.framework.ServiceFactory` or not.

Default:
  false