All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.enterprise.inject.spi.WithAnnotations Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
package javax.enterprise.inject.spi;

import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 

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

* *

* If the {@link WithAnnotations} annotation is applied to a portable extension observer method, then only * {@link 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. * * @author Pete Muir * @since 1.1 */ @Retention(RUNTIME) @Target(PARAMETER) public @interface WithAnnotations { Class[] value(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy