2 Replies Latest reply on Jun 19, 2009 8:50 AM by Lars Huber

    org.jboss.seam.intercept.Interceptor limits the number of Interceptors

    Lars Huber Newbie

      Hi


      Currently this is not working.


      @Interceptors({FirstInterceptor.class, SecondInterceptor.class})
      



      The Interceptor implementation of 2.1 nightly build restricts the @Interceptors annotation to exactly 1 interceptor. The following code shows the cause.



         public Interceptor(Class[] classes, Annotation annotation, Component component) 
         {
            if (classes.length!=1)
            {
               //TODO: remove this silly restriction!
               throw new IllegalArgumentException("Must be exactly one interceptor when used as a meta-annotation");
            }
            userInterceptorClass = classes[0];
      
      




      Will this restriction be removed or what would be an appropriate workaround?


      thanks
      Lars