ObjectProperty.setValue could try also valueOf factory method

I brought this idea from RESTeasy:
JBoss RESTEasy docs
.

Now ObjectProperty.setValue converts values from string to Property type using type.class.constructor(String).

It could try also valueOf factory method.

“The parameter type you inject into can be any primitive type, a String, or any Java object that has a constructor that takes a String parameter, or a static valueOf method that takes a String as a parameter.”


ticket 6618

Same for MethodProperty


ticket 6621