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

org.kohsuke.stapler.interceptor.InterceptorAnnotation Maven / Gradle / Ivy

There is a newer version: 1.263
Show newest version
package org.kohsuke.stapler.interceptor;

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

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;

/**
 * Marks the annotation as an interceptor annotation,
 * which executes before/after the method invocation of domain objects happen
 * as a part of the request processing.
 *
 * 

* This mechanism is useful for performing declarative processing/check on domain objects, * such as checking HTTP headers, performing the access control, etc. * * @author Kohsuke Kawaguchi * @see Interceptor * @see RequirePOST */ @Target(ANNOTATION_TYPE) @Retention(RUNTIME) @Documented public @interface InterceptorAnnotation { /** * Actual interceptor logic. Must have a default constructor. */ Class value(); /** * The point of invocation of this interceptor. */ Stage stage() default Stage.PREINVOKE; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy