[jboss-dev-forums] [Design of EJB 3.0] - Re: Ordering multiple life cycle callback methods

wolfc do-not-reply at jboss.com
Mon Sep 1 13:01:25 EDT 2008


Take a look at org.jboss.ejb3.interceptors.registry.InterceptorRegistry.initialize and org.jboss.ejb3.interceptors.aop.LifecycleCallbacks.createLifecycleCallbackInterceptors.

The first creates the sorted list of lifecycle callback interceptor classes, while the second creates the association with the appropriate (EJB3) interceptor instance, the bean instance and returns an array of AOP interceptors.

I'm all in favour of refactoring this onto a generic JSR-250 component, but the functions above must be able to interface on top of it.

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

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



More information about the jboss-dev-forums mailing list