[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: How to reliably determine if BeanMetaData contains depen
alesj
do-not-reply at jboss.com
Wed Feb 11 09:14:35 EST 2009
You're doing it wrong. ;-)
This is all you need:
| void doVisit(MetaDataVisitorNode node)
| {
| // check node
| someNodeCheck(node);
|
| Iterator<? extends MetaDataVisitorNode> children = node.getChildren();
| if (children != null)
| {
| while(children.hasNext())
| {
| doVisit(children.next());
| }
| }
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209051#4209051
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209051
More information about the jboss-dev-forums
mailing list