Package org.candlepin.guice

Examples of org.candlepin.guice.SimpleScope


        bind(UniqueIdGenerator.class).to(DefaultUniqueIdGenerator.class);

        bind(Function.class).annotatedWith(Names.named("endDateGenerator"))
            .to(ExpiryDateFunction.class).in(Singleton.class);

        SimpleScope pinsetterJobScope = new SimpleScope();
        bindScope(PinsetterJobScoped.class, pinsetterJobScope);
        bind(SimpleScope.class).annotatedWith(Names.named("PinsetterJobScope"))
            .toInstance(pinsetterJobScope);
    }
View Full Code Here


            bind(JobFactory.class).to(GuiceJobFactory.class);
            bind(JobListener.class).to(PinsetterJobListener.class);
            bind(PrincipalProvider.class).to(TestPrincipalProvider.class);
            bind(Principal.class).toProvider(TestPrincipalProvider.class);

            SimpleScope pinsetterJobScope = new SimpleScope();
            bindScope(PinsetterJobScoped.class, pinsetterJobScope);
            bind(SimpleScope.class).annotatedWith(Names.named("PinsetterJobScope"))
                .toInstance(pinsetterJobScope);
        }
View Full Code Here

TOP

Related Classes of org.candlepin.guice.SimpleScope

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.