[jboss-dev-forums] [Design of EJB 3.0] - Re: WARN logs in InterceptorRegistry

jaikiran do-not-reply at jboss.com
Wed Feb 4 05:38:46 EST 2009


I have started work on fixing this. One of the issues (though not directly related) i see in this registry, is this:

  | Class<?> beanClass = advisor.getClazz();
  |       for(Method beanMethod : ClassHelper.getAllMethods(beanClass))
  |       {
  |          interceptorsAnnotation = (Interceptors) advisor.resolveAnnotation(beanMethod, Interceptors.class);
  |          List<Class<?>> methodInterceptorClasses = new ArrayList<Class<?>>();
  |          if(interceptorsAnnotation != null)
  |          {
  |             for(Class<?> interceptorClass : interceptorsAnnotation.value())
  |                methodInterceptorClasses.add(interceptorClass);
  |          }
  |          
  | ...

>From the EJB3 spec:

anonymous wrote : Interceptors are used to interpose on business method invocations and lifecycle events that occur on an enterprise bean instance.

So, using 

ClassHelper.getAllMethods(beanClass)

doesn't look right.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206865#4206865

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206865



More information about the jboss-dev-forums mailing list