com.jdon.annotation.Interceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdonframework Show documentation
Show all versions of jdonframework Show documentation
JdonFramework is a java framework that you can use to build your Domain Driven Design + CQRS + EventSource applications with asynchronous concurrency and higher throughput.
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 "";
}