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

com.nhl.link.rest.BaseModule Maven / Gradle / Ivy

package com.nhl.link.rest;

import com.nhl.link.rest.parser.converter.JsonValueConverter;
import com.nhl.link.rest.runtime.parser.converter.DefaultJsonValueConverterFactoryProvider;
import com.nhl.link.rest.runtime.parser.converter.IJsonValueConverterFactory;
import org.apache.cayenne.di.Binder;
import org.apache.cayenne.di.Module;

public class BaseModule implements Module {

    @Override
    public void configure(Binder binder) {
        // a map of custom converters
        binder.bindMap(JsonValueConverter.class);
        binder.bind(IJsonValueConverterFactory.class).toProvider(DefaultJsonValueConverterFactoryProvider.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy