Package org.beanio.types
Interface ConfigurableTypeHandler
-
- All Superinterfaces:
TypeHandler
- All Known Implementing Classes:
AbstractXmlCalendarTypeHandler,AbstractXmlDateTypeHandler,BigDecimalTypeHandler,BigIntegerTypeHandler,ByteTypeHandler,CalendarTypeHandler,DateTypeHandler,DateTypeHandlerSupport,DoubleTypeHandler,FloatTypeHandler,IntegerTypeHandler,LongTypeHandler,NumberTypeHandler,ShortTypeHandler,TemporalAccessorTypeHandler,XmlCalendarDateTimeTypeHandler,XmlCalendarDateTypeHandler,XmlCalendarTimeTypeHandler,XmlDateTimeTypeHandler,XmlDateTypeHandler,XmlTimeTypeHandler
public interface ConfigurableTypeHandler extends TypeHandler
Interface for type handlers that support field specific customization. When a type handler is registered that implements this interface, theTypeHandlerFactoryinvokesnewInstance(Properties)if any type handler field properties were set.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFORMAT_SETTINGThe field format pattern-
Fields inherited from interface org.beanio.types.TypeHandler
NIL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeHandlernewInstance(java.util.Properties properties)Creates a customized instance of this type handler.-
Methods inherited from interface org.beanio.types.TypeHandler
format, getType, parse
-
-
-
-
Field Detail
-
FORMAT_SETTING
static final java.lang.String FORMAT_SETTING
The field format pattern- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
TypeHandler newInstance(java.util.Properties properties) throws java.lang.IllegalArgumentException
Creates a customized instance of this type handler.- Parameters:
properties- the properties for customizing the instance- Returns:
- the new
TypeHandler - Throws:
java.lang.IllegalArgumentException- if a property value is invalid
-
-