[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MutableClassInfo?

adrian@jboss.org do-not-reply at jboss.com
Wed Jan 14 08:04:40 EST 2009


"alesj" wrote : 
  | But I guess this shouldn't be a problem to add/impl,
  | as our current scoped classpool impl is simply a map of CL,Pool pairs
  | and all TypeInfoFactory::get methods have a means to get CL.
  | 

The scoped classpool isn't that though. It works at the "domain" level
assuming all peer classloaders are visible to each other and that they all
export everything.

anonymous wrote : 
  | It's probably just the case of delaying class loading as late as possible
  | plus changing how we cache things with non-introspection TypeInfoFactory impls.
  | e.g. Class == CL + classname

If everybody used the ClassInfo stuff there should be no real classloading at all
until it is really needed, i.e. objects constructed. 
And all the reflection would be optimized (faster and stored only once) 
using the javassist implementation.

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

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



More information about the jboss-dev-forums mailing list