[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Moving microcontainer -> kernel

adrian@jboss.org do-not-reply at jboss.com
Tue Jun 2 09:06:37 EDT 2009


"david.lloyd at jboss.com" wrote : OK, I may not agree that this is "right" but it is what it is.  I think there's one thing we can agree on though - the parameter ought to have a more accurate name, like "beanName" or "beanIdentifier" rather than just "bean", because "bean" implies an expectation that you're passing in the actual bean object in question rather than its identifier.

You simply don't get it.
The controller context, dependencies, etc. has nothing to do with a "bean"
or the choices of any particular component model.

The POJO controller context is only one possible implementation that relates to beans
and that happens to use a String as the name.

Other component models don't have to use a String for the name.
Its up to each component model to keep things consistent.

If you want the longer version of this argument, at least as it relates to JMX, then use
search. I know I've been over the issue  at least once before at some length in this forum.

There's even a JIRA (or at least a discussion) somewhere about using a "UUID"
as the real id with the publically visible "name" just being an alias.

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

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



More information about the jboss-dev-forums mailing list