Package org.apache.activemq.util
Class MemoryIntPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.activemq.util.MemoryIntPropertyEditor
- All Implemented Interfaces:
PropertyEditor
Used by xbean to set integers.
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 int 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
-
MemoryIntPropertyEditor
public MemoryIntPropertyEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-
getAsText
- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-