
javax.interceptor.Interceptors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-servlet-shaded Show documentation
Show all versions of weld-servlet-shaded Show documentation
This jar bundles all the bits of Weld and CDI required for running in a Servlet container.
package javax.interceptor;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Declares the list of interceptors (by interceptor class) which apply to the annotated class or method.
*/
@Target({ TYPE, METHOD, CONSTRUCTOR })
@Retention(RUNTIME)
public @interface Interceptors {
/**
* The actual interceptor classes to apply to the annotated element.
*
* @return the interceptor classes
*/
@SuppressWarnings({ "rawtypes" }) // By spec, this returns a raw type. Don't mess with the spec.
Class[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy