Top Description Methods
jakarta.enterprise.inject.spi

public @Interface WithAnnotations

extends Annotation
Annotations
@Retention:RUNTIME
@Target:PARAMETER
Static Imports
java.lang.annotation.ElementType.PARAMETER, .RetentionPolicy.RUNTIME

WithAnnotations may be applied to any portable extension observer method with an event parameter type of ProcessAnnotatedType to filter the events delivered.

If the WithAnnotations annotation is applied to a portable extension observer method, then only ProcessAnnotatedType events for types which have at least one of the annotations specified are observed. The annotation can appear on the annotated type, or on any member, or any parameter of any member of the annotated type, as defined in section 11.4 Alternative metadata sources. The annotation may be applied as a meta-annotation on any annotation considered.

CDI Lite implementations are not required to provide support for Portable Extensions.

Author
Pete Muir
Since
1.1

Method Summary

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

Returns:

required annotation types
value
()

The annotation types that must be present on the AnnotatedType for the ProcessAnnotatedType observer to be notified.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

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

The annotation types that must be present on the AnnotatedType for the ProcessAnnotatedType observer to be notified.

Returns:Class<? extends Annotation>[]

required annotation types