use of org.skife.config.ConfigurationObjectFactory in project killbill by killbill.
the class TestHtmlInvoiceGenerator method beforeClass.
@Override
@BeforeClass(groups = "fast")
public void beforeClass() throws Exception {
super.beforeClass();
final TranslatorConfig config = new ConfigurationObjectFactory(skifeConfigSource).build(TranslatorConfig.class);
final TemplateEngine templateEngine = new MustacheTemplateEngine();
final InvoiceFormatterFactory factory = new DefaultInvoiceFormatterFactory();
g = new HtmlInvoiceGenerator(factory, templateEngine, config, null, resourceBundleFactory, null);
}
use of org.skife.config.ConfigurationObjectFactory in project killbill by killbill.
the class TestEmbeddedDBFactory method createDaoConfig.
private DaoConfig createDaoConfig(final String url, final String user, final String password) {
final Properties properties = new Properties();
properties.put("org.killbill.dao.url", url);
properties.put("org.killbill.dao.user", user);
properties.put("org.killbill.dao.password", password);
return new ConfigurationObjectFactory(properties).build(DaoConfig.class);
}
use of org.skife.config.ConfigurationObjectFactory in project killbill by killbill.
the class TestJaxrsBase method beforeSuite.
@BeforeSuite(groups = "slow")
public void beforeSuite() throws Exception {
super.beforeSuite();
if (config == null) {
config = new ConfigurationObjectFactory(System.getProperties()).build(HttpServerConfig.class);
}
if (daoConfig == null) {
daoConfig = new ConfigurationObjectFactory(skifeConfigSource).build(DaoConfig.class);
}
serverConfig = new ConfigurationObjectFactory(skifeConfigSource).build(KillbillServerConfig.class);
listener = new TestKillbillGuiceListener(serverConfig, configSource);
server = new HttpServer();
server.configure(config, getListeners(), getFilters());
server.start();
}
use of org.skife.config.ConfigurationObjectFactory in project killbill by killbill.
the class KillBillShiroModule method configureShiro.
protected void configureShiro() {
final RbacConfig config = new ConfigurationObjectFactory(new ConfigSource() {
@Override
public String getString(final String propertyName) {
return configSource.getString(propertyName);
}
}).build(RbacConfig.class);
bind(RbacConfig.class).toInstance(config);
bindRealm().toProvider(IniRealmProvider.class).asEagerSingleton();
configureJDBCRealm();
configureLDAPRealm();
}
use of org.skife.config.ConfigurationObjectFactory in project killbill by killbill.
the class SecurityModule method installConfig.
private void installConfig() {
final SecurityConfig securityConfig = new ConfigurationObjectFactory(skifeConfigSource).build(SecurityConfig.class);
bind(SecurityConfig.class).toInstance(securityConfig);
}
Aggregations