org.apache.mina.integration.spring
Class InetAddressEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.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: 555855 $, $Date: 2007-07-13 12:19:00 +0900 (Fri, 13 Jul 2007) $
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
- See Also:
InetAddress
| 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 |
InetAddressEditor
public InetAddressEditor()
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Specified by:
setAsText in interface PropertyEditor- Overrides:
setAsText in class PropertyEditorSupport
- Throws:
IllegalArgumentException
Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.