[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: General BeanInfo annotation visitor helper?

adrian@jboss.org do-not-reply at jboss.com
Thu Mar 6 04:24:03 EST 2008


"scott.stark at 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#4134490

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134490



More information about the jboss-dev-forums mailing list