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

com.netflix.karyon.admin.AbstractAdminModule Maven / Gradle / Ivy

package com.netflix.karyon.admin;

import com.google.inject.binder.LinkedBindingBuilder;
import com.google.inject.multibindings.MapBinder;
import com.netflix.governator.DefaultModule;

/**
 * To be used by libraries wishing to add an admin controller
 * 
 * @author elandau
 *
 */
public abstract class AbstractAdminModule extends DefaultModule {
    protected LinkedBindingBuilder bindAdminResource(String name) {
        return MapBinder.newMapBinder(binder(), String.class, Object.class, AdminResource.class).addBinding(name);
    }
}