Package org.springframework.data.gemfire
Class InterestPolicyConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<InterestPolicy>
org.springframework.data.gemfire.InterestPolicyConverter
- All Implemented Interfaces:
PropertyEditor
,Converter<String,
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
- Author:
- John Blum
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts the given String into a GemFire InterestPolicy 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
-
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:
-