i’m experimenting with seam interceptors.
I i have a custom annotation defined as:
@Target(TYPE)
@Retention(RUNTIME)
@Interceptors(SomeInterceptor.class)
public @interface MyInterceptAnnotation { }
and i have a superclass annotated with @MyInterceptAnnotation
@MyInterceptAnnotation
MyAbstractSuperClass{...}
is possible to have all subclasses derived from MyAbstractSuperClass intercepted??
Best regards
No, I suppose. You can try that out. However, something can be done on
packagelevel, usingpackage-info.java. So, the classes belong to that particular package will get intercepted. Like below,package-info.java
In order to force subclasses to define the annotation, look at this thread.
Just came across a related thread, but its about
Spring. I wonder if we have similar way inSeam. You can try to find out.