Top Description Inners Methods
org.osgi.service.cdi.annotations

public @Interface ServiceInstance

extends Annotation
Known Direct Implementers
org.osgi.service.cdi.annotations.ServiceInstance.Literal
Annotations
@Documented
@Retention:RUNTIME
@Target:TYPE, FIELD, METHOD
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .ElementType.TYPE, .RetentionPolicy.RUNTIME

Annotation used on beans, observer methods and observer fields to specify the service scope for the service. Used in conjunction with Service.
Author
$Id: 6a6cbd55e28c89b955abeeecfe55f3579cca87d5 $

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ServiceInstance.Literal

Support inline instantiation of the ServiceInstance annotation.

Method Summary

Modifier and TypeMethod and Description
public ServiceScope
value()

The scope of the service.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public ServiceScope value()

The scope of the service.

org.osgi.service.cdi.annotations back to summary

public final Class ServiceInstance.Literal

extends AnnotationLiteral<ServiceInstance>
implements ServiceInstance
Class Inheritance
All Implemented Interfaces
org.osgi.service.cdi.annotations.ServiceInstance, java.lang.annotation.Annotation

Support inline instantiation of the ServiceInstance annotation.

Field Summary

Modifier and TypeField and Description
private static final long
private final ServiceScope

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ServiceInstance.Literal

Returns:

an instance of ServiceInstance
of
(ServiceScope
the type of the ServiceInstance
type
)

public ServiceScope
value()

Implements org.osgi.service.cdi.annotations.ServiceInstance.value.

The scope of the service.

Inherited from javax.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.enterprise.util.AnnotationLiteral.serialVersionUID.

typeback to summary
private final ServiceScope type

Constructor Detail

Literalback to summary
private Literal(ServiceScope type)

Method Detail

ofback to summary
public static ServiceInstance.Literal of(ServiceScope type)
Parameters
type:ServiceScope

the type of the ServiceInstance

Returns:ServiceInstance.Literal

an instance of ServiceInstance

valueback to summary
public ServiceScope value()

Implements org.osgi.service.cdi.annotations.ServiceInstance.value.

Doc from org.osgi.service.cdi.annotations.ServiceInstance.value.

The scope of the service.

Annotations
@Override