geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Boynes <>
Subject Store type in GAtrributeInfo
Date Fri, 13 Feb 2004 17:05:58 GMT
I think we should add the attribute type to GAttributeInfo

Currently the type is figured out when GBeanMBean goes online and the 
target's class can be loaded. This means things dealing with persistent 
attributes (like the deployer) need to have the type information 
specified by the user. This is a PITA.

I think it is better to put the burden on the developer rather than the 
end user e.g.

GBeanInfoFactory.addAttribute("Foo", String.class, true);
<attribute name="Foo">Stuff</attribute>

is better than

GBeanInfoFactory.addAttribute("Foo", true);
<attribute name="Foo" type="java.lang.String">Stuff</attribute>


View raw message