[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Bean definition as value add problem (JBMICROCONT-28)
adrian@jboss.org
do-not-reply at jboss.com
Fri Sep 1 07:04:54 EDT 2006
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#3968900
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968900
More information about the jboss-dev-forums
mailing list