[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 09:22:04 EDT 2006
"alesj" wrote :
| anonymous wrote :
| | generateGUIDIfNoName()
| |
|
| Ok, but the name then cannot be obtained from previous nodes information.
|
Why not (the above is pseudo code that ignores at lot the impl details)?
You needs the previous node so you do setValue(injection);
When it is not a property, I'd suggest using something like
OuterBeanName$N where N is the number as you iterate through
the metadata.
anonymous wrote :
| anonymous wrote :
| | replaceWithInjection();
| |
|
| Why replacing it with injection?
| What's the issue with current impl - with plain dependency - which is similar to injection?
| Ok, if I set the name, then I must at least deep clone it?
Because it is an injection. You are saying inject the value of
this bean into the outer bean once the bean is fully installed.
See the original examples I posted.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968922#3968922
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968922
More information about the jboss-dev-forums
mailing list