Class WriteConcernPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.mongodb.config.WriteConcernPropertyEditor
- All Implemented Interfaces:
PropertyEditor
Parse a string to a
WriteConcern
. If it is a well know String
as identified by the
WriteConcern.valueOf(String)
, use the well known WriteConcern
value, otherwise pass the string as is
to the constructor of the write concern. There is no support for other constructor signatures when parsing from a
string value.- Author:
- Mark Pollack, Christoph Strobl
-
Constructor Summary
-
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
WriteConcernPropertyEditor
public WriteConcernPropertyEditor()
-
-
Method Details
-
setAsText
Parse a string to aWriteConcern
.- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
-