Users that have the need to integrate not already implemented converters, can easily do it by following the listed steps:
<dependency> <groupId>org.apache.onami.converters</groupId> <artifactId>org.apache.onami.converters.core</artifactId> <version>1.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency>
public final class DecimalFormatConverter
extends AbstractConverter<DecimalFormat>
{
/**
* {@inheritDoc}
*/
public Object convert( String value, TypeLiteral<?> toType )
{
return new DecimalFormat( value );
}
}