[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Lifecycle aspects revisited

kabir.khan@jboss.com do-not-reply at jboss.com
Tue Feb 20 13:44:46 EST 2007


I've largely worked through the AOP side of replacing the old "lifecycle aspects" with "lifecycle actions". 

I propose something like the following interface for the lifecycle actions


  | interface LifecycleAction
  | {
  |    void install(KernelControllerContext ctx);
  |    void uninstall(KernelControllerContext ctx);
  | }
  | 

I'm not sure where to fit it in though. Can I populate the KernelControllerContext with the lifecycle handlers for the different states?

I need some way of getting hold of the Advisor, since this is where the per-bean annotations are stored, and also it is a convenient way of reading the annotations in the class. But this may be solveable by something Adrian mentioned before about storing the metadata information in the Class(Instance)Adapter and accessing that via the KCC?


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

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



More information about the jboss-dev-forums mailing list