2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

Extend Apache Onami Converters

Users that have the need to integrate not already implemented converters, can easily do it by following the listed steps:

  1. add the core dependency in the pom.xml:
    <dependency>
      <groupId>org.apache.onami.converters</groupId>
      <artifactId>org.apache.onami.converters.core</artifactId>
      <version>1.0.1-SNAPSHOT</version>
      <scope>compile</scope>
    </dependency>
  2. Extend the org.apache.onami.converters.core.AbstractConverter, that's the class responsible for the conversion and self-binding, specifying the converted type:
    public final class DecimalFormatConverter
        extends AbstractConverter<DecimalFormat>
    {
    
        /**
         * {@inheritDoc}
         */
        public Object convert( String value, TypeLiteral<?> toType )
        {
            return new DecimalFormat( value );
        }
    
    }
  3. Plug your new logging module and enjoy ;)