"scott.stark(a)jboss.org" wrote : For the AbstractManagedObjectFactory
refactoring, and deployment template factory I'm working on, there is the common task
of finding annotations from a root BeanInfo. Do we have general BeanInfo visitor helper?
Worth creating it?
|
I don't understand what you are tring to do?
You can't in general visit BeanInfo because it is not a graph, the types
can be self referencing either directly or transitively. Any "visit' would loop
forever. ;-)
e.g. simple example from the JDK
| public class Class extends Object {}
| public class Object
| {
| Class getClass();
| }
|
The closest thing to a "visitor" (its not actually a visitor)
is the WeakTypeCache used to build the ClassInfo, etc.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134490#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...