Top Description Inners Methods
jakarta.enterprise.context

public @Interface Destroyed

extends Annotation
Known Direct Implementers
jakarta.enterprise.context.Destroyed.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 destroyed, i.e. after the actual destruction.
Author
Pete Muir
Since
1.1
See Also
Initialized, BeforeDestroyed

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Destroyed.Literal

Supports inline instantiation of the Destroyed qualifier.

Method Summary

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

Returns:

the scope type class
value
()

The scope for which to observe destruction

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

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

The scope for which to observe destruction

Returns:Class<? extends Annotation>

the scope type class

jakarta.enterprise.context back to summary

public final Class Destroyed.Literal

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

Supports inline instantiation of the Destroyed qualifier.
Author
Martin Kouba

Field Summary

Modifier and TypeField and Description
public static final Destroyed.Literal
public static final Destroyed.Literal
public static final Destroyed.Literal
private static final long
public static final Destroyed.Literal
private final Class<? extends Annotation>

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static Destroyed.Literal
of(Class<? extends Annotation> value)

public Class<? extends Annotation>
value()

Implements jakarta.enterprise.context.Destroyed.value.

The scope for which to observe destruction
Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

APPLICATIONback to summary
public static final Destroyed.Literal APPLICATION
CONVERSATIONback to summary
public static final Destroyed.Literal CONVERSATION
REQUESTback to summary
public static final Destroyed.Literal REQUEST
serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

SESSIONback to summary
public static final Destroyed.Literal SESSION
valueback to summary
private final Class<? extends Annotation> value

Constructor Detail

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

Method Detail

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

Implements jakarta.enterprise.context.Destroyed.value.

Doc from jakarta.enterprise.context.Destroyed.value.

The scope for which to observe destruction

Returns:Class<? extends Annotation>

the scope type class