org.jboss.util.propertyeditor
Class PropertiesEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jboss.util.propertyeditor.TextPropertyEditorSupport
          extended by org.jboss.util.propertyeditor.PropertiesEditor
All Implemented Interfaces:
PropertyEditor

public class PropertiesEditor
extends TextPropertyEditorSupport

A property editor for Properties.

Version:
$Revision: 1.5.6.2 $
Author:
Jason Dillon, Scott.Stark@jboss.org

Constructor Summary
PropertiesEditor()
           
 
Method Summary
 Object getValue()
          Returns a Properties object initialized with current getAsText value interpretted as a .properties file contents.
 
Methods inherited from class org.jboss.util.propertyeditor.TextPropertyEditorSupport
setAsText
 
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 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 PropertyEditor
Overrides:
getValue in class PropertyEditorSupport
Returns:
a Properties object
Throws:
NestedRuntimeException - An IOException occured.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.