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