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!

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/3xeRLACRW3cJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to