[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Reimplementing ClassPools for AS

alesj do-not-reply at jboss.com
Tue Jan 13 10:00:57 EST 2009


"adrian at jboss.org" wrote : 
  | See BaseClassLoader.getClassLoaderForClass() for how it works
  | without exposing nasty things. ;-)
  | 
You can do this

  |    public ClassLoader foo(ClassLoader cl) throws Exception
  |    {
  |       ClassLoader fcl = null;
  |       if (cl instanceof BaseClassLoader)
  |       {
  |          BaseClassLoader bcl = (BaseClassLoader)cl;
  |          fcl = bcl.findClassLoader("com.acme.FooBar");
  |       }
  |       return fcl;
  |    }
  | 
Intentional?

I guess it doesn't do any harm ...

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

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



More information about the jboss-dev-forums mailing list