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

com.jdon.annotation.Interceptor Maven / Gradle / Ivy

package com.jdon.annotation;

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

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

/**
 * @Interceptor("aroundAdvice") if there is no any component call this class
 *                              (MethodInterceptor), the MethodInterceptor will
 *                              action for all components called by client (by
 *                              AppUtil.getService or WebApp.getService)
 * 
 * 
 *@Interceptor(name = "myInterceptor", target = "a,c") if there is target
 *                   value, this class will be only available for the target
 *                   component name, not for all components called by client
 * 
 */
@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface Interceptor {
	String value() default "";

	String name() default "";

	String pointcut() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy