Spring Data for VMware GemFire
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:
-
PropertyEditorScopeConverterAbstractPropertyEditorConverterSupport
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport
assertConverted, setAsTextMethods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
ScopeConverter
public ScopeConverter()
-
-
Method Details
-
convert
Converts the givenStringinto 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)
-