Michael
unread,Jan 9, 2013, 4:20:42 AM1/9/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google...@googlegroups.com
Hi All,
I created an annotation named "Validate"
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Validate {
Class<? extends MethodInterceptor>[] value();
}
And defined it before a method
@Validate({OneInterceptor.class, TwoInterceptor.class})
public void doPost(HttpServletRequest req, HttpServletResponse resp) {
//do something
}
OneInterceptor implements MethodInterceptor {.....} TwoInterceptor implements MethodInterceptor{....}
So I want to know is there a possible to bind interceptors within a Module like this ? Many thanks!