i started changing the pointcut matchers to use ClassInfo instead of CtClass just to get a
grasp of things and it seems that is not easy to "only" change matchers or
instrumentor, etc.
look at just creating org.jboss.aop.pointcut.Util.matchesClassExpr(ClassExpression
classExpr, ClassInfo classInfo, Advisor advisor) to work similar as the javassist/reflect
version.
then we need to create a ClassInfo "version" of
org.jboss.aop.annotation.PortableAnnotationElement. isAnyAnnotationPresent(...). this
method needs uses javassist.ClassFile to fetch annotationinformation regarding the
visibility of the annotation. these kind of methods are not available in jboss-reflect
AnnotationType/AnnotationValue/TypeInfo afaik.
so either we end up using javassist for these kind of operations (which is totally against
why we do it in the first place) or we need to get a better overview of what functionality
we need from the reflect api to use it in aop.
atm im only thinking of the non-mutable-info we need, but maybe we should include the
mutableinfo discussion into this?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201149#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...