[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Providing bean name aware feature

alesj do-not-reply at jboss.com
Fri Jul 13 05:21:05 EDT 2007


"adrian at jboss.org" wrote : Why the name of the method? It should be a property name.
  | Is this a spring thing again? :-)
  | 
Not that I would know.
I think they have a interface you need to implement to get your name injected - BeanNameAware.
I thought it is more flexible to have a method, not just setter - three more chars to write. ;-)
And I always liked applyName. :-)

"adrian at jboss.org" wrote : 
  | And do you support something like?
  | 
  | 
  |   | @InjectContextName
  |   | public void setName(Stinrg name) {}
  |   | or
  |   | @Inject(fromContext="name")
  |   | public void setName(String name) {}
  |   | 

Support it in what way?

This should be a part of our annotation support if that's what you mean.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063865#4063865

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063865



More information about the jboss-dev-forums mailing list