Spring Data Document

org.springframework.data.mongodb.config
Class WriteConcernPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by 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

Constructor Summary
WriteConcernPropertyEditor()
           
 
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
 

Constructor Detail

WriteConcernPropertyEditor

public WriteConcernPropertyEditor()
Method Detail

setAsText

public void setAsText(String writeConcernString)
Parse a string to a List

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport

Spring Data Document

Copyright © 2012. All Rights Reserved.