Class SubscriptionEvictionPolicyConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<SubscriptionEvictionPolicy>
org.springframework.data.gemfire.server.SubscriptionEvictionPolicyConverter
- All Implemented Interfaces:
PropertyEditor
,Converter<String,
SubscriptionEvictionPolicy>
public class SubscriptionEvictionPolicyConverter
extends AbstractPropertyEditorConverterSupport<SubscriptionEvictionPolicy>
The SubscriptionEvictionPolicyConverter class is a Spring Converter and JavaBeans PropertyEditor for converting
Strings into a SubscriptionEvictionPolicy enumerated value.
- Since:
- 1.6.0
- Author:
- John Blum
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts the given String into a SubscriptionEvictionPolicy enumerated value.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
-
SubscriptionEvictionPolicyConverter
public SubscriptionEvictionPolicyConverter()
-
-
Method Details
-
convert
Converts the given String into a SubscriptionEvictionPolicy enumerated value.- Parameters:
source
- the String to convert into a SubscriptionEvictionPolicy enum.- Returns:
- a SubscriptionEvictionPolicy enumerated value for the given String.
- Throws:
IllegalArgumentException
- if the String is a valid SubscriptionEvictionPolicy enumerated value.- See Also:
-