jbossas/jboss-as — pull request #2699 by kabir (2012-07-17 21:28:59+00:00)
Title: [master][AS7-4869][AS7-5189][AS7-5190] Fix JMX type converters to handle empty v...

...alues and expressions. Handle expressions properly and extra domaini supporting expressions.

[AS7-4869]
This keeps the JMX facade working as it used to in the 'jboss.as' domain, but formalizes the contract we had. Simple types in the model are mapped onto corresponding types in the model. This means it is not possible to set an expression for an attribute of type INT, and likewise if an attribute is backed by an expression in the model the resolved expression is returned. 'show-model=true' in the old schema will add this domain.

[AS7-5189]
This introduces a new jboss.as.expr domain. This domain represents all simple types in the model as String and reads unresolved expressions and allows to set expressions if the underlying attribute/parameter supports it. The names of both this domain and the legacy domain are configurable.

[AS7-5189]
Simple types in the model with type PROPERTY were previously marshalled as simple DMR strings. Proper support has been added for these in the jboss.as.expr domain as composite types where the key is the property name and the value has the type in the model. For the legacy domain the default behaviour is to handle PROPERTY values the same way but this can be turned off using the proper-property-format attribute. Parsing older versions of the schema will default proper-property-format to false.

Other:
Decided not to allow expressions for byte[] - they will always be returned as byte[]