[Design the new POJO MicroContainer] - Re: Using ClassInfo in JBoss AOP
by stale.pedersen@jboss.org
creating a simple prototype of JavassistTypeInfoFactoryImpl with the needed changes isnt as straightforward as first thought.
we need to overwrite the methods WeakClassCache.get(Class clazz) and WeakClassCache.get(String name, ClassLoader cl).
the problem is that the method WeakClassCache.get(Class clazz) calls JavassistTypeInfoFactoryImpl.instantiate(Class clazz).
this method needs to be changed too since we dont have any Class object yet. by changing this method we get a lot of errors since it instantiate several JavassistTypeInfo objects, and most of the constructors to the different JavassistTypeInfo/JavassistAnnotationInfo/etc classes are either packaged protected or packaged/override protected.
JavassistTypeInfo "cannot" be extended since its constructors are package protected and by creating an identical JavassistTypeInfo class inside of the prototype package we need to either extend a lot of *Info classes or create new identical classes.
anyone got any ideas of how it can be done without creating X number of prototype classes?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199929#4199929
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199929
15 years, 4 months