org.springframework.data.mongodb.config

Class 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, Christoph Strobl