Package org.springframework.data.gemfire
Class ScopeConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<org.apache.geode.cache.Scope>
org.springframework.data.gemfire.ScopeConverter
- All Implemented Interfaces:
PropertyEditor
,org.springframework.core.convert.converter.Converter<String,
org.apache.geode.cache.Scope>
public class ScopeConverter
extends AbstractPropertyEditorConverterSupport<org.apache.geode.cache.Scope>
The
ScopeConverter
class is a Spring Converter
and JavaBeans PropertyEditor
that converts a String
into a Scope
.- Since:
- 1.6.0
- See Also:
-
PropertyEditor
Scope
Converter
AbstractPropertyEditorConverterSupport
-
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
-
ScopeConverter
public ScopeConverter()
-
-
Method Details
-
convert
Converts the givenString
into an instance ofScope
.- Parameters:
source
- the String to convert into a GemFire Scope.- Returns:
- a GemFire Scope for the given String.
- Throws:
IllegalArgumentException
- if the String is not a valid GemFire Scope.- See Also:
-
Scope.fromString(String)
ScopeType.valueOfIgnoreCase(String)
ScopeType.getScope(ScopeType)
-