[ http://nagoya.apache.org/jira/browse/GERONIMO-450?page=comments#action_55485 ] David Jencks commented on GERONIMO-450: ---------------------------------------
Dain points out that the GBeanInfo should have the type built in (String type = gbeanInfo.getType()), so the xml only needs the name. We also need the ability to add more name key-value pairs: this could be supported by an element like <name-property key="mykey" value="myvalue"/> which can occur as many times as needed. So a gbean declaration might look like <gbean name="myname" class="org.me.myclass"> <name-property key="k1" value="v1"/> <name-property key="k2" value="v2"/> <attribute name="foo">bar</attribute> <reference name="Bar">...</reference> </gbean> The reference could also be decomposed into components so typically you might only specify type and name. > GBeans should use jsr-77 naming conventions and these names should have > mostly default components > ------------------------------------------------------------------------------------------------- > > Key: GERONIMO-450 > URL: http://nagoya.apache.org/jira/browse/GERONIMO-450 > Project: Apache Geronimo > Type: Improvement > Components: deployment > Versions: 1.0-M2 > Reporter: David Jencks > Assignee: David Jencks > > Currently the usage of object names for non-j2ee-wrapping gbeans is more or > less random and confusing. We should adopt as much of jsr-77 naming as > possible for our gbeans. Furthermore, as little as possible of the names > should be specified in the gbean xml descriptor. Here's a proposal: > 1. A service module that has no parent must specify domain and server name. > This domain and server name will be inherited by all children recursively. > 2. All gbeans deployed from a service dd will have J2EEApplication=null and > GeronimoModule=<configId> > 3. All gbeans deployed from a j2ee module or application will have > J2EEApplication set from the application and GeronimoModule=<configId> > 4. A gbean xml descriptor will have attributes for j2eeType and name. We > will invent more j2eeType names as needed and prefix them with Ger or > Geronimo. > I'm inclined to remove the possibility of directly specifying the entire > object name. If it is really needed I'd suggest the attribute be called > target-name in analogy to the usage in refs. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
