Package com.netflix.staash.cassandra.discovery

Examples of com.netflix.staash.cassandra.discovery.EurekaModule


    PaasMetaService metasvc;
    PaasDataService datasvc;
    @Before
    public void setup() {
//        metasvc = new PaasMetaService(new CqlMetaDaoImplNew(Cluster.builder().addContactPoint("localhost").build()));
        EurekaModule em = new EurekaModule();
        Injector einj = Guice.createInjector(em);
        TestPaasPropertiesModule pmod = new TestPaasPropertiesModule();
        Injector inj = Guice.createInjector(pmod);
        metasvc = inj.getInstance(PaasMetaService.class);
//        datasvc = new PaasDataService(metasvc, Guice.createInjector(pmod).getInstance(ConnectionFactory.class));
View Full Code Here


public class GuiceServletConfig extends GuiceServletContextListener {
    @Override
    protected Injector getInjector() {
        return LifecycleInjector.builder()
                .withModules(
                    new EurekaModule(),
                     new PaasPropertiesModule(),  
                    new JerseyServletModule() {
                        @Override
                        protected void configureServlets() {
                            bind(GuiceContainer.class).asEagerSingleton();
View Full Code Here

                    @Override
                    protected void configure() {
                        bind(String.class).annotatedWith(Names.named("groupName")).toInstance("testgroup");
                    }
                },
                new EurekaModule()
            );
           
            // Create the injector
            Injector injector = LifecycleInjector.builder()
                .withModules(modules)
View Full Code Here

public class GuiceServletConfig extends GuiceServletContextListener {
    @Override
    protected Injector getInjector() {
        return LifecycleInjector.builder()
                .withModules(
                    new EurekaModule(),
                     new PaasPropertiesModule(),  
                    new JerseyServletModule() {
                        @Override
                        protected void configureServlets() {
                            bind(GuiceContainer.class).asEagerSingleton();
View Full Code Here

TOP

Related Classes of com.netflix.staash.cassandra.discovery.EurekaModule

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.