java - Seam Interceptor abstract base class -
i'm experimenting seam interceptors. i have custom annotation defined as:
@target(type) @retention(runtime) @interceptors(someinterceptor.class) public @interface myinterceptannotation { }
and have superclass annotated @myinterceptannotation
@myinterceptannotation myabstractsuperclass{...}
is possible have subclasses derived myabstractsuperclass intercepted?? best regards
no, suppose. can try out. however, can done on package
level, using package-info.java
. so, classes belong particular package intercepted. below,
package-info.java
@myinterceptannotation package my.package.name; import my.annotation.package.name.myinterceptannotation;
in order force subclasses define annotation, @ this thread.
just came across related thread, spring
. wonder if have similar way in seam
. can try find out.
Comments
Post a Comment