Right now the MetaObjectHandler is strict about
conversion from string to object. It will always look
up a PropertyFormat and use its parse object.
BeanObjectHandler has nifty support for using a string
as a constant reference to some object if it can find one.
Recommendation: create a PropertyFormat that will check
for constant references before delegating to the normal
DefaultPropertyFormat. This can then replace the
current default when parsing XML.
Low priority because it's easily worked around by
referencing the constant as a nested element. In other
words:
<foo>
<bar><SomeConstant /></bar>
</foo>
Works. While:
<foo bar="SomeConstant" />
Doesn't. For meta-objects anyway.