Top Description Inners Methods
jakarta.enterprise.context

public @Interface Initialized

extends Annotation
Known Direct Implementers
jakarta.enterprise.context.Initialized.Literal
Annotations
@Qualifier
@Target:TYPE, METHOD, PARAMETER, FIELD
@Retention:RUNTIME
@Documented
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE, .RetentionPolicy.RUNTIME

An event with this qualifier is fired when a context is initialized, i.e. ready for use.
Author
Pete Muir
Since
1.1
See Also
BeforeDestroyed, Destroyed

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Initialized.Literal

Supports inline instantiation of the Initialized qualifier.

Method Summary

Modifier and TypeMethod and Description
public Class<? extends Annotation>

Returns:

the scope type class
value
()

The scope for which to observe initialization

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<? extends Annotation> value()

The scope for which to observe initialization

Returns:Class<? extends Annotation>

the scope type class

jakarta.enterprise.context back to summary

public final Class Initialized.Literal

extends AnnotationLiteral<Initialized>
implements Initialized
Class Inheritance
All Implemented Interfaces
jakarta.enterprise.context.Initialized, java.lang.annotation.Annotation

Supports inline instantiation of the Initialized qualifier.
Author
Martin Kouba

Field Summary

Modifier and TypeField and Description
public static final Initialized.Literal
APPLICATION

Default Initialized literal for the ApplicationScoped scope

public static final Initialized.Literal
CONVERSATION

Default Initialized literal for the ConversationScoped scope

public static final Initialized.Literal
REQUEST

Default Initialized literal for the RequestScoped scope

private static final long
public static final Initialized.Literal
SESSION

Default Initialized literal for the SessionScoped scope

private final Class<? extends Annotation>
value

The scope annotation

Constructor Summary

AccessConstructor and Description
private
Literal(Class<? extends Annotation> value)

Method Summary

Modifier and TypeMethod and Description
public static Initialized.Literal

Returns:

a new Literal value for the provided scope annotation
of
(Class<? extends Annotation>
the scope annotation
value
)

Obtain the literal of the provided scope annotation

public Class<? extends Annotation>
value()

Implements jakarta.enterprise.context.Initialized.value.

The scope for which to observe initialization

Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

APPLICATIONback to summary
public static final Initialized.Literal APPLICATION

Default Initialized literal for the ApplicationScoped scope

CONVERSATIONback to summary
public static final Initialized.Literal CONVERSATION

Default Initialized literal for the ConversationScoped scope

REQUESTback to summary
public static final Initialized.Literal REQUEST

Default Initialized literal for the RequestScoped scope

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

SESSIONback to summary
public static final Initialized.Literal SESSION

Default Initialized literal for the SessionScoped scope

valueback to summary
private final Class<? extends Annotation> value

The scope annotation

Constructor Detail

Literalback to summary
private Literal(Class<? extends Annotation> value)

Method Detail

ofback to summary
public static Initialized.Literal of(Class<? extends Annotation> value)

Obtain the literal of the provided scope annotation

Parameters
value:Class<? extends Annotation>

the scope annotation

Returns:Initialized.Literal

a new Literal value for the provided scope annotation

valueback to summary
public Class<? extends Annotation> value()

Implements jakarta.enterprise.context.Initialized.value.

Doc from jakarta.enterprise.context.Initialized.value.

The scope for which to observe initialization

Returns:Class<? extends Annotation>

the scope type class