Class PropertiesEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class PropertiesEditor
    extends TextPropertyEditorSupport
    A property editor for Properties.
    Version:
    $Revision$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getValue()
      Returns a Properties object initialized with current getAsText value interpretted as a .properties file contents.
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertiesEditor

        public PropertiesEditor()
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Returns a Properties object initialized with current getAsText value interpretted as a .properties file contents. This replaces any references of the form ${x} with the corresponding system property.
        Specified by:
        getValue in interface java.beans.PropertyEditor
        Overrides:
        getValue in class java.beans.PropertyEditorSupport
        Returns:
        a Properties object
        Throws:
        NestedRuntimeException - An IOException occured.