Package org.springframework.data.gemfire
Class InterestPolicyConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<org.apache.geode.cache.InterestPolicy>
org.springframework.data.gemfire.InterestPolicyConverter
- All Implemented Interfaces:
PropertyEditor
,org.springframework.core.convert.converter.Converter<String,
org.apache.geode.cache.InterestPolicy>
public class InterestPolicyConverter
extends AbstractPropertyEditorConverterSupport<org.apache.geode.cache.InterestPolicy>
The InterestPolicyConverter class is a Spring Converter implementation and Java PropertyEditor handling
the conversion between Strings and GemFire InterestPolicy values.
- Since:
- 1.6.0
- See Also:
-
AbstractPropertyEditorConverterSupport
InterestPolicy
-
Constructor Summary
-
Method Summary
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
InterestPolicyConverter
public InterestPolicyConverter()
-
-
Method Details
-
convert
Converts the given String into a GemFire InterestPolicy value.- Parameters:
source
- the String value to convert into a GemFire InterestPolicy value.- Returns:
- a GemFire InterestPolicy value for the given String description of the GemFire InterestPolicy
- Throws:
IllegalArgumentException
- if the String is not a valid GemFire InterestPolicy.- See Also:
-