@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()); } }
@Override protected void configure() { LOGGER.debug("installing module: {}", AuthorizationModule.class.getSimpleName()); install(new AuthenticationModule()); install(new EventLogModule()); install(new CassandraRepositoryModule()); Properties properties = create(PROPERTY_NAME, AuthorizationModule.class); String authorizationClassName = getProperty("authorization.class.name", properties, "com.intuit.wasabi.authorization.impl.DefaultAuthorization"); try { @SuppressWarnings("unchecked") Class<Authorization> authorizationClass = (Class<Authorization>) forName(authorizationClassName); bind(Authorization.class).to(authorizationClass).in(SINGLETON); } catch (ClassNotFoundException e) { throw new AuthenticationException("unable to find authorization class: " + authorizationClassName, e); } LOGGER.debug("installed module: {}", AuthorizationModule.class.getSimpleName()); } }
LOGGER.debug("installing module: {}", AuditLogModule.class.getSimpleName()); install(new EventLogModule());
LOGGER.debug("installing module: {}", EmailModule.class.getSimpleName()); install(new EventLogModule()); install(new CassandraRepositoryModule());