[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Context ClassLoader - POJO

adrian@jboss.org do-not-reply at jboss.com
Thu Jan 24 19:45:30 EST 2008


"adrian at jboss.org" wrote : "scott.stark at jboss.org" wrote : Who is going to have to configure the aspect, the bean deployment, or would this be setup by the deployer in the absence an override config? (not sure you can detect that other than a flag saying not to install the aspect).
  |   |  
  | 
  | There is no aspect. The classloader will set automatically from the configured classloader.
  | For beans created from the deployment layer, it will be the classloader of the deployment
  | unless there is a specific one in the xml.

We should probably raise a feature request for such an aspect for runtime invocations?

i.e. write an aspect that introduces a KernelControllerContextAware onto the POJO and
steals the classloader from it during deployment. 
Then it sets the context classloader to that classloader during invocations on the object.

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

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



More information about the jboss-dev-forums mailing list