Package netflix.adminresources.resources

Source Code of netflix.adminresources.resources.KaryonWebAdminModule

package netflix.adminresources.resources;

import com.netflix.governator.guice.LifecycleInjectorBuilder;
import com.netflix.governator.guice.LifecycleInjectorBuilderSuite;
import netflix.adminresources.KaryonAdminModule;

public class KaryonWebAdminModule extends KaryonAdminModule {

    @Override
    protected void configure() {
        super.configure();
        bind(WebAdminComponent.class).asEagerSingleton();
    }

    public static LifecycleInjectorBuilderSuite asSuite() {
        return new LifecycleInjectorBuilderSuite() {
            @Override
            public void configure(LifecycleInjectorBuilder builder) {
                builder.withAdditionalModules(new KaryonWebAdminModule());
            }
        };
    }
}
TOP

Related Classes of netflix.adminresources.resources.KaryonWebAdminModule

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.