-
1. Re: Using ClassInfo in AOP
stalep Jan 12, 2009 2:46 PM (in response to kabirkhan)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?