Class OrderPolicyConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<org.apache.geode.cache.wan.GatewaySender.OrderPolicy>
org.springframework.data.gemfire.wan.OrderPolicyConverter
- All Implemented Interfaces:
PropertyEditor
,org.springframework.core.convert.converter.Converter<String,
org.apache.geode.cache.wan.GatewaySender.OrderPolicy>
public class OrderPolicyConverter
extends AbstractPropertyEditorConverterSupport<org.apache.geode.cache.wan.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
- See Also:
-
GatewaySender.OrderPolicy
AbstractPropertyEditorConverterSupport
OrderPolicyType
-
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
-
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:
-
OrderPolicyType.getOrderPolicy()
OrderPolicyType.valueOfIgnoreCase(String)
Gateway.OrderPolicy
-