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

jaikiran do-not-reply at jboss.com
Wed Feb 4 06:33:11 EST 2009


"wolfc" wrote : 
  | We need to identify all scenarios in which methodApplicapleInterceptorClasses is null so we can come up with the proper fix.

One of the simplest valid cases would be a bean having no Interceptor(s) declared:

  | @Stateless
  | public class SimpleBean implements NoInterceptor
  | {
  |     public void doNothing()
  |    {
  |  ....
  |    }
  | 
  | }
There wont be any interceptors applicable  (i.e. methodApplicapleInterceptorClasses == null) for that business method. 

anonymous wrote : This needs to be properly fixed, so the assertion can take hold

What is the use case where this assertion should hold? From the above example, i think its a valid scenario to have no interceptors applicable for a given method. Am i missing something?


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

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



More information about the jboss-dev-forums mailing list