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

com.netflix.karyon.jetty.JettyOverrideModule Maven / Gradle / Ivy

There is a newer version: 4.0.0-rc.1
Show newest version
package com.netflix.karyon.jetty;

import javax.inject.Singleton;

import com.google.inject.Provides;
import com.netflix.archaius.ConfigProxyFactory;
import com.netflix.governator.DefaultModule;
import com.netflix.governator.auto.annotations.ConditionalOnModule;
import com.netflix.governator.auto.annotations.OverrideModule;
import com.netflix.governator.guice.jetty.JettyConfig;
import com.netflix.governator.guice.jetty.JettyModule;

@OverrideModule(JettyModule.class)
@ConditionalOnModule(JettyModule.class)
public class JettyOverrideModule extends DefaultModule {
    @Provides
    @Singleton
    private JettyConfig getDefaultConfig(ConfigProxyFactory factory) {
        return factory.newProxy(AnnotatedJettyConfig.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy