[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: anonymous beans

adrian@jboss.org do-not-reply at jboss.com
Fri Apr 20 08:06:53 EDT 2007


"bill.burke at jboss.com" wrote : just tell me how to do it and i can do it.  is my approach valid, etc.

Repeating at least three other discussions... :-(

The real solution is to always use an internal id (a GUID) then you don't need a name
unless you are doing injections.

The controller would use the GUID internally and map external calls
name -> GUID and vice versa.

For the Bean as a value 

  | <bean >
  |    <attribute name="blah><bean/></attribute>
  | </bean>
  | 
the GUID needs to be linked since this is really an injection.

  | <bean>
  |    <attribute name="blah><inject bean="Anon#1"/></attribute>
  | <bean>
  | <bean name="Anon#1"/>
  | 

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

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



More information about the jboss-dev-forums mailing list