Class ExpirationActionConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<ExpirationAction>
org.springframework.data.gemfire.expiration.ExpirationActionConverter
- All Implemented Interfaces:
PropertyEditor
,Converter<String,
ExpirationAction>
public class ExpirationActionConverter
extends AbstractPropertyEditorConverterSupport<ExpirationAction>
The ExpirationActionTypeConverter class is a Spring Converter used to convert a String value into
a corresponding ExpirationActionType enumerated value.
- Since:
- 1.6.0
- Author:
- John Blum
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts the given String into an appropriate GemFire ExpirationAction.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
-
ExpirationActionConverter
public ExpirationActionConverter()
-
-
Method Details
-
convert
Converts the given String into an appropriate GemFire ExpirationAction.- Parameters:
source
- the String to convert into an GemFire ExpirationAction.- Returns:
- an GemFire ExpirationAction value for the given String.
- Throws:
IllegalArgumentException
- if the String is not a valid GemFire ExpirationAction.- See Also:
-