Package org.apache.activemq.util
Class MemoryPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.activemq.util.MemoryPropertyEditor
- All Implemented Interfaces:
PropertyEditor
Used by xbean to set longs.
Important: Do not use this for other purposes than xbean, as property editors
are not thread safe, and they are slow to use.
Converts string values like "20 Mb", "1024kb", and "1g" to long values in
bytes.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
MemoryPropertyEditor
public MemoryPropertyEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-
getAsText
- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-