[jboss-dev-forums] [Design of Management Features on JBoss] - Re: JBAS-6672, null values and defaults
charles.crouch@jboss.com
do-not-reply at jboss.com
Wed Mar 25 13:01:18 EDT 2009
Summarizing the discussion from todays console call:
1) When creating a new component, if a managed property is not specified or specified as null, then the profile service should make sure any default value for that property is applied during deployment, but that the default value is *not* persisted as part of the managed view of the component.
2) When viewing a resource created in step 1), any properties which were null originally, should be returned as null by the profile service, i.e. they should not be returned as either the default value for the property or the default value for underlying primitive type, e.g. 0 for int, false for boolean.
3) If the default value for a property changes, and that managed property has a null value (e.g. the user has never specified a value), then when the component gets deployed it should use the new default value.
Cheers
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221000#4221000
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221000
More information about the jboss-dev-forums
mailing list