org.apache.mina.integration.spring
Class InetAddressEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.apache.mina.integration.spring.InetAddressEditor
All Implemented Interfaces:
PropertyEditor

public class InetAddressEditor
extends PropertyEditorSupport

Java Bean PropertyEditor which converts Strings into InetAddress objects. This may be used together with Spring to be able to set InetAddress bean properties, e.g. BlacklistFilter.setBlacklist(InetAddress[]). Simply calls InetAddress.getByName(java.lang.String) when converting from a String.

Use Spring's CustomEditorConfigurer to use this property editor in a Spring configuration file. See chapter 3.14 of the Spring Reference Documentation for more info.

Version:
$Revision: 437002 $, $Date: 2006-08-26 00:47:20 +0200 (Sat, 26 Aug 2006) $
Author:
The Apache Directory Project (mina-dev@directory.apache.org)
See Also:
InetAddress

Constructor Summary
InetAddressEditor()
           
 
Method Summary
 void setAsText(String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetAddressEditor

public InetAddressEditor()
Method Detail

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Throws:
IllegalArgumentException