org.jboss.util.propertyeditor
Class PropertiesEditor

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

public class PropertiesEditor
extends TextPropertyEditorSupport

A property editor for Properties.

Version:
$Revision: 1.5 $
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, getTags, isPaintable, paintValue, removePropertyChangeListener, 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.

Returns:
a Properties object
Throws:
NestedRuntimeException - An IOException occured.


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