repositoryImpl = getProperty("Transaction.RepositoryImpl", repositoryImpl); repository = (Repository) Class.forName(repositoryImpl).newInstance(); repository.init(this, dir); } catch (ClassNotFoundException exc) { logmon.log(BasicLevel.FATAL,
public final void initRepository() throws IOException { LogMemoryCapacity = getInteger("Transaction.LogMemoryCapacity", LogMemoryCapacity).intValue(); MaxLogFileSize = getInteger("Transaction.MaxLogFileSize", MaxLogFileSize / Mb).intValue() * Mb; nbLogFile = getInteger("Transaction.NbLogFile", nbLogFile).intValue(); minObjInLog = getInteger("Transaction.minObjInLog", minObjInLog).intValue(); LogThresholdOperation = getInteger("Transaction.LogThresholdOperation", LogThresholdOperation).intValue(); Operation.initPool(LogThresholdOperation); try { repositoryImpl = getProperty("Transaction.RepositoryImpl", repositoryImpl); repository = (Repository) Class.forName(repositoryImpl).newInstance(); repository.init(this, dir); } catch (ClassNotFoundException exc) { logmon.log(BasicLevel.FATAL, "NTransaction, cannot initializes the repository ", exc); throw new IOException(exc.getMessage()); } catch (InstantiationException exc) { logmon.log(BasicLevel.FATAL, "NTransaction, cannot initializes the repository ", exc); throw new IOException(exc.getMessage()); } catch (IllegalAccessException exc) { logmon.log(BasicLevel.FATAL, "NTransaction, cannot initializes the repository ", exc); throw new IOException(exc.getMessage()); } syncOnWrite = getBoolean("Transaction.SyncOnWrite"); useLockFile = getBoolean("Transaction.UseLockFile"); logManager = new LogManager(dir, repository, useLockFile, syncOnWrite); }
repositoryImpl = System.getProperty("NTRepositoryImpl", repositoryImpl); repository = (Repository) Class.forName(repositoryImpl).newInstance(); repository.init(this, dir); } catch (ClassNotFoundException exc) { logmon.log(BasicLevel.FATAL,
repositoryImpl = System.getProperty("NTRepositoryImpl", repositoryImpl); repository = (Repository) Class.forName(repositoryImpl).newInstance(); repository.init(this, dir); } catch (ClassNotFoundException exc) { logmon.log(BasicLevel.FATAL,