Package org.osgi.service.cdi.annotations
Class ServiceInstance.Literal
- java.lang.Object
-
- javax.enterprise.util.AnnotationLiteral<ServiceInstance>
-
- org.osgi.service.cdi.annotations.ServiceInstance.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- ServiceInstance
public static final class ServiceInstance.Literal extends javax.enterprise.util.AnnotationLiteral<ServiceInstance> implements ServiceInstance
Support inline instantiation of theServiceInstance
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.osgi.service.cdi.annotations.ServiceInstance
ServiceInstance.Literal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceInstance.Literal
of(ServiceScope type)
ServiceScope
value()
-
Methods inherited from class javax.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
-
-
-
Method Detail
-
of
public static ServiceInstance.Literal of(ServiceScope type)
- Parameters:
type
- the type of the ServiceInstance- Returns:
- an instance of
ServiceInstance
-
value
public ServiceScope value()
-
-