Package com.tll.config

Examples of com.tll.config.ConfigRef


  protected void addModules(List<Module> modules) {
    modules.add(new RefDataModule());

    // hack: create mail module to avoid guice ConfigurationException
    // as it implicitly binds at the MailModule constrctor
    modules.add(new MailModule(Config.load(new ConfigRef("config-mail.properties"))));

    modules.add(new TestPersistenceUnitModelModule());
    modules.add(new TestDb4oDaoModule(getConfig()));
    modules.add(new Db4oDbShellModule());
    modules.add(new TestEntityServiceFactoryModule());
View Full Code Here


  protected void addModules(List<Module> modules) {
    modules.add(new RefDataModule());

    // hack: create mail module to avoid guice ConfigurationException
    // as it implicitly binds at the MailModule constrctor
    modules.add(new MailModule(Config.load(new ConfigRef("config-mail.properties"))));

    modules.add(new TestPersistenceUnitModelModule());
    modules.add(new TestDb4oDaoModule(getConfig()));
    modules.add(new Db4oDbShellModule());
    modules.add(new TestEntityServiceFactoryModule());
View Full Code Here

    // load *all* found config properties
    // NOTE: this is presumed to be the first contact point with the config
    // instance!
    final Config config;
    try {
      config = Config.load(new ConfigRef(true));
    }
    catch(final IllegalArgumentException e) {
      throw new Error("Unable to load config: " + e.getMessage(), e);
    }

View Full Code Here

    });
  }

  @Override
  protected Config doGetConfig() {
    return Config.load(new ConfigRef("db4o-config.properties"));
  }
View Full Code Here

    return injector.getInstance(IEntityServiceFactory.class).instanceByEntityType(entityClass);
  }

  @Override
  protected Config doGetConfig() {
    return Config.load(new ConfigRef("db4o-config.properties"));
  }
View Full Code Here

    modules.add(new SmbizEGraphModule());
  }

  @Override
  protected Config doGetConfig() {
    return Config.load(new ConfigRef("db4o-config.properties"));
  }
View Full Code Here

  "dao", "db4o", "model" })
public class SmbizEGraphDb4oStubTest extends AbstractDbAwareTest {

  @Override
  protected Config doGetConfig() {
    Config c = Config.load(new ConfigRef("db4o-config.properties"));
    c.setProperty("db.transaction.bindToSpringAtTransactional", Boolean.FALSE);
    return c;
  }
View Full Code Here

    // load *all* found config properties
    // NOTE: this is presumed to be the first contact point with the config
    // instance!
    if(config != null) throw new IllegalStateException();
    try {
      config = Config.load(new ConfigRef(true));
    }
    catch(final IllegalArgumentException e) {
      throw new Error("Unable to load config: " + e.getMessage(), e);
    }
    log.debug("App config instance loaded");
View Full Code Here

    modules.add(new SmbizDb4oDaoModule(getConfig()));
  }

  @Override
  protected Config doGetConfig() {
    final Config c = Config.load(new ConfigRef("test-config.properties"));
    c.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    return c;
  }
View Full Code Here

    modules.add(new SmbizEntityServiceFactoryModule());
  }

  @Override
  protected Config doGetConfig() {
    return Config.load(new ConfigRef("test-config.properties"));
  }
View Full Code Here

TOP

Related Classes of com.tll.config.ConfigRef

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.