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

com.netflix.metacat.main.manager.ManagerModule Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.netflix.metacat.main.manager;

import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import com.netflix.metacat.common.type.TypeManager;
import com.netflix.metacat.common.type.TypeRegistry;

/**
 * Guice module for Manager classes.
 *
 * @author amajumdar
 */
public class ManagerModule extends AbstractModule {
    @Override
    protected void configure() {
        binder().bind(CatalogManager.class).in(Scopes.SINGLETON);
        binder().bind(PluginManager.class).in(Scopes.SINGLETON);
        binder().bind(ConnectorManager.class).in(Scopes.SINGLETON);

        binder().bind(TypeManager.class).toInstance(TypeRegistry.getTypeRegistry());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy