[jboss-as7-dev] What to do about jboss-common-core?

Ales Justin ales.justin at gmail.com
Wed Mar 7 10:51:07 EST 2012


>> A pull request[1] has come in that brings a bunch of jboss-common-core
>> classes into the AS 7 codebase.
>> [...]
> 
> For the property editor stuff, which seems to be the bulk of this 
> change, if it's widely used, perhaps a dedicated property editor library 
> is called for.  Aleš, does the POJO deployment subsystem use this code?

Good catch. :-)

Looking at the code, it looks like the only thing I use from there is sys prop replacement.
(btw: what's the replacement for this in AS7?)

Whereas for property editor, I use java.beans.PropertyEditorManager mechanism.

-Ales

---
            if (replaceProperties)
                value = StringPropertyReplacer.replaceProperties(string);
        }

        if (clazz.isAssignableFrom(valueClass))
            return value;

        // First see if this is an Enum
        if (clazz.isEnum()) {
            Class<? extends Enum> eclazz = clazz.asSubclass(Enum.class);
            return Enum.valueOf(eclazz, value.toString());
        }

        // Next look for a property editor
        if (valueClass == String.class) {
            PropertyEditor editor = PropertyEditorManager.findEditor(clazz);
            if (editor != null) {

---


More information about the jboss-as7-dev mailing list