Package com.tll.di

Examples of com.tll.di.SmbizDb4oDaoModule


  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new SmbizModelModule());
    modules.add(new SmbizEGraphModule());
    modules.add(new SmbizDb4oDaoModule(getConfig()));
  }
View Full Code Here


  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new SmbizModelModule());
    modules.add(new SmbizEGraphModule());
    modules.add(new SmbizDb4oDaoModule(getConfig()));
    modules.add(new SmbizMarshalModule());
    modules.add(new Db4oDbShellModule());
  }
View Full Code Here

  protected void beforeClass() {
    // create the db shell first (before test injector creation) to avoid db4o
    // file lock when objectcontainer is instantiated
    final Config cfg = getConfig();
    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    final Injector i = buildInjector(new SmbizDb4oDaoModule(cfg), new Db4oDbShellModule(), new SmbizModelModule(), new SmbizEGraphModule());
    final IDbShell dbs = i.getInstance(IDbShell.class);
    dbs.restub();

    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), true);
    super.beforeClass();
View Full Code Here

  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new SmbizModelModule());
    modules.add(new SmbizEGraphModule());
    modules.add(new SmbizDb4oDaoModule(getConfig()));
    modules.add(new Db4oDbShellModule());
    modules.add(new SmbizEntityServiceFactoryModule());
  }
View Full Code Here

  @Override
  protected void addModules(List<Module> modules) {
    super.addModules(modules);
    modules.add(new SmbizModelModule());
    modules.add(new SmbizEGraphModule());
    modules.add(new SmbizDb4oDaoModule(getConfig()));
    modules.add(new Db4oDbShellModule());
    modules.add(new Module() {

      @Override
      public void configure(Binder binder) {
View Full Code Here

    cfg.addProperty(Db4oDaoModule.ConfigKeys.DB4O_FILENAME.getKey(), getConfig().getProperty(
        Db4oDaoModule.ConfigKeys.DB4O_FILENAME.getKey()));
    cfg.addProperty(Db4oDaoModule.ConfigKeys.DB_TRANS_TIMEOUT.getKey(), getConfig().getProperty(
        Db4oDaoModule.ConfigKeys.DB_TRANS_TIMEOUT.getKey()));
    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    final Injector i = buildInjector(new SmbizDb4oDaoModule(cfg), new Db4oDbShellModule());
    final IDbShell dbs = i.getInstance(IDbShell.class);

    dbs.delete();
    dbs.create();
    super.beforeClass();
View Full Code Here

TOP

Related Classes of com.tll.di.SmbizDb4oDaoModule

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.