org.springframework.data.mongodb.config
Class WriteConcernPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.mongodb.config.WriteConcernPropertyEditor
- All Implemented Interfaces:
- PropertyEditor
public class WriteConcernPropertyEditor
- extends PropertyEditorSupport
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
Method Summary |
void |
setAsText(String writeConcernString)
Parse a string to a List |
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 |
WriteConcernPropertyEditor
public WriteConcernPropertyEditor()
setAsText
public void setAsText(String writeConcernString)
- Parse a string to a List
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
Copyright © 2011. All Rights Reserved.