Spring Data Document

org.springframework.data.mongodb.config
Class ServerAddressPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.springframework.data.mongodb.config.ServerAddressPropertyEditor
All Implemented Interfaces:
PropertyEditor

public class ServerAddressPropertyEditor
extends PropertyEditorSupport

Parse a String to a ServerAddress array. The format is host1:port1,host2:port2,host3:port3.

Author:
Mark Pollack, Oliver Gierke

Constructor Summary
ServerAddressPropertyEditor()
           
 
Method Summary
 void setAsText(String replicaSetString)
           
 
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

ServerAddressPropertyEditor

public ServerAddressPropertyEditor()
Method Detail

setAsText

public void setAsText(String replicaSetString)
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport

Spring Data Document

Copyright © 2012. All Rights Reserved.