-
1. Re: Javassist pool implementation
kabirkhan Feb 28, 2006 12:02 PM (in response to adrian.brock)I think it should be possible to pull it out somewhere.
If we are moving JBoss AOP to use the ClassInfo stuff internally, the container would be a good place to put it as far as AOP is concerned. Dunno about JBoss Retro though? -
2. Re: Javassist pool implementation
kabirkhan Feb 28, 2006 1:01 PM (in response to adrian.brock)As an aside, I see that JavassistTypeInfoFactoryImpl always loads up the java.lang.reflect.Class before creating the CtClass. I guess that is because this is a first cut?
If we are to migrate AOP to use this we need to make this work without using java.lang.reflect.Class for loadtime weaving to work (You probably already know this :-) -
3. Re: Javassist pool implementation
adrian.brock Mar 1, 2006 6:28 AM (in response to adrian.brock)"kabir.khan@jboss.com" wrote:
As an aside, I see that JavassistTypeInfoFactoryImpl always loads up the java.lang.reflect.Class before creating the CtClass. I guess that is because this is a first cut?
If we are to migrate AOP to use this we need to make this work without using java.lang.reflect.Class for loadtime weaving to work (You probably already know this :-)
Yes. See TypeInfo.java/** * Get the class * * @deprecated I'm not sure this should be here? * @return the class */ Class getType();
The class is there only because things like the java bean property editors
are currently based on the class. It is serving more as a cache for the class
because my current pool impl doesn't understand classloaders. -
4. Re: Javassist pool implementation
adrian.brock Mar 8, 2006 10:27 AM (in response to adrian.brock)After some false starts I've realised that the AOP class pool
doens't really understand classloader either.
But it doesn't really matter for AOP since it is told the classloader
when it "intercepts" defineClass()
I'll need to think about it some more.
It is not an easy problem to solve without knowing
the classloading structure.