Class InetAddressEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.mina.integration.spring.InetAddressEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class InetAddressEditor extends java.beans.PropertyEditorSupport
Java BeanPropertyEditor
which converts Strings intoInetAddress
objects. This may be used together with Spring to be able to setInetAddress
bean properties, e.g.BlacklistFilter.setBlacklist(InetAddress[])
. Simply callsInetAddress.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.
- See Also:
InetAddress
-
-
Constructor Summary
Constructors Constructor Description InetAddressEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAsText(java.lang.String text)
-