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

public @Interface SingleComponent

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

Identifies a single component.

Single components MUST always be ComponentScoped. Applying any other scope will result in a definition error.

Author
$Id: c6213cc188052c8eba100120f2d2390fe47f3d8e $
See Also
Single Component

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
SingleComponent.Literal

Support inline instantiation of the SingleComponent annotation.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
org.osgi.service.cdi.annotations back to summary

public final Class SingleComponent.Literal

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

Support inline instantiation of the SingleComponent annotation.

Field Summary

Modifier and TypeField and Description
public static final SingleComponent
INSTANCE

Default instance.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from javax.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final SingleComponent INSTANCE

Default instance.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()