This has nothing to do with the intitalVisit()
which is invoked when you register the context.
This is about constructing multiple contexts from a single BeanMetaData.
The code should be in AbstractBeanMetaData::getBeans();
Some thing like (psuedo code)
| public List<BeanMetaData> getBeans()
| {
| if (noNestedBeans)
| return Collections.singletonList(this);
| else
| {
| List<BeanMetaData> result;
| result.add(deepCloneBeanMetaData()); // Don't modify what the user gives
us
| for (BeanMetaData nested : nestedBeans)
| {
| generateGUIDIfNoName();
| replaceWithInjection();
| result.add(whatWasReplaced);
| }
| return result;
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968900#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...