Class EvictionPolicyConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<EvictionPolicyType>
org.springframework.data.gemfire.eviction.EvictionPolicyConverter
- All Implemented Interfaces:
PropertyEditor
,Converter<String,
EvictionPolicyType>
public class EvictionPolicyConverter
extends AbstractPropertyEditorConverterSupport<EvictionPolicyType>
The EvictionTypeConverter class is a Spring Converter used to convert a String value into
a corresponding EvictionType enumerated value.
- Since:
- 1.6.0
- Author:
- John Blum
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts the given String into a matching EvictionType.Methods inherited from class org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport
assertConverted, setAsText
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
EvictionPolicyConverter
public EvictionPolicyConverter()
-
-
Method Details
-
convert
Converts the given String into a matching EvictionType.- Parameters:
source
- the String value to convert into an EvictionType.- Returns:
- the EvictionType matching the given String.
- Throws:
IllegalArgumentException
- if the String value does not represent a valid EvictionType.- See Also:
-