[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Providing bean name aware feature
alesj
do-not-reply at jboss.com
Mon Jul 16 09:16:45 EDT 2007
Since JBMICROCONT-192 was reopened.
"thomas.diesler at jboss.org" wrote :
| Does it really have to be that complicated?
|
| How about
|
| @BeanName
| void setName(String name)
| {
| log.info(name + ": " + this)
| }
|
I propose the next addition:
| <bean name="somename" class="..." name-aware="true">
|
I still think me should explicitly mark that we want to have name injected.
Since we don't provide the name method, it will invoke by default to setName.
Less complicated. :-)
OK?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064533#4064533
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064533
More information about the jboss-dev-forums
mailing list