/** * {@inheritDoc} */ @Override protected void configure() { LOGGER.debug("installing module: {}", AnalyticsModule.class.getSimpleName()); install(new ExperimentsModule()); install(new CassandraRepositoryModule()); install(new DatabaseAnalyticsModule()); bind(Analytics.class).to(AnalyticsImpl.class).in(SINGLETON); bind(AnalysisTools.class).to(AnalysisToolsImpl.class).in(SINGLETON); bind(ExperimentDetails.class).to(ExperimentDetailsImpl.class).in(SINGLETON); LOGGER.debug("installed module: {}", AnalyticsModule.class.getSimpleName()); } }
@Override protected void configure() { LOGGER.debug("installing module: {}", ExperimentsModule.class.getSimpleName()); install(new EventLogModule()); install(new CassandraRepositoryModule()); bind(Experiments.class).to(ExperimentsImpl.class).in(SINGLETON); bind(Buckets.class).to(BucketsImpl.class).in(SINGLETON); bind(Mutex.class).to(MutexImpl.class).in(SINGLETON); bind(Pages.class).to(PagesImpl.class).in(SINGLETON); bind(Priorities.class).to(PrioritiesImpl.class).in(SINGLETON); bind(Favorites.class).to(FavoritesImpl.class).in(SINGLETON); bind(ExperimentValidator.class).in(SINGLETON); LOGGER.debug("installed module: {}", ExperimentsModule.class.getSimpleName()); } }
install(new ExperimentsModule());
private void installModules() { LOGGER.debug("installing module: {}", ApiModule.class.getCanonicalName()); //these modules are either free of other dependencies or they are required by later modules install(new com.intuit.autumn.api.ApiModule()); installUserModule(); install(new DatabaseExperimentRepositoryModule()); install(new DatabaseModule()); install(new JacksonModule()); install(new AuditLogModule()); installAuthModule(); //install(new EmailModule()); installEmailModule(); installEventModule(); install(new ExperimentsModule()); install(new FeedbackModule()); install(new AnalyticsModule()); LOGGER.debug("installed module: {}", ApiModule.class.getCanonicalName()); } }