Class MemoryPropertyEditor

java.lang.Object
java.beans.PropertyEditorSupport
org.apache.activemq.util.MemoryPropertyEditor
All Implemented Interfaces:
PropertyEditor

public class MemoryPropertyEditor extends PropertyEditorSupport
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.