All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.guice.Convertors Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package nl.vpro.guice;

import com.google.inject.AbstractModule;

/**
 * @author Michiel Meeuwissen
 * @since 1.69
 */
public class Convertors extends AbstractModule {

    public static final Convertors INSTANCE = new Convertors();
    @Override
    protected void configure() {
        DurationConvertor.register(binder());
        TemporalAmountConvertor.register(binder());
    }

    @Override
    public String toString() {
        return getClass().getSimpleName() + ":" + DurationConvertor.class.getSimpleName();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy