Package com.netflix.governator.guice

Examples of com.netflix.governator.guice.LifecycleInjectorBuilderSuite


        super.configure();
        bind(WebAdminComponent.class).asEagerSingleton();
    }

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


    public static LifecycleInjectorBuilderSuite asSuite() {
        return asSuite(7002);
    }

    public static LifecycleInjectorBuilderSuite asSuite(final int port) {
        return new LifecycleInjectorBuilderSuite() {
            @Override
            public void configure(LifecycleInjectorBuilder builder) {
                builder.withAdditionalModules(new ShutdownModule(port));
            }
        };
View Full Code Here

    private static LifecycleInjectorBuilderSuite toSuite(final Module... modules) {
        if (null == modules) {
            return null;
        }
        return new LifecycleInjectorBuilderSuite() {
            @Override
            public void configure(LifecycleInjectorBuilder builder) {
                builder.withAdditionalModules(modules);
            }
        };
View Full Code Here

    protected void configure() {
        RxNetty.useMetricListenersFactory(new ServoEventsListenerFactory());
    }

    public static LifecycleInjectorBuilderSuite asSuite() {
        return new LifecycleInjectorBuilderSuite() {
            @Override
            public void configure(LifecycleInjectorBuilder builder) {
                builder.withAdditionalModules(new KaryonServoModule());
            }
        };
View Full Code Here

    protected LinkedBindingBuilder<String> bindEurekaNamespace() {
        return bind(String.class).annotatedWith(EurekaNamespace.class);
    }

    public static LifecycleInjectorBuilderSuite asSuite() {
        return new LifecycleInjectorBuilderSuite() {
            @Override
            public void configure(LifecycleInjectorBuilder builder) {
                builder.withAdditionalModules(new KaryonEurekaModule());
            }
        };
View Full Code Here

TOP

Related Classes of com.netflix.governator.guice.LifecycleInjectorBuilderSuite

Copyright © 2018 www.massapicom. 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.