Configurable
5657585960616263646566
{ log.error("Creation of PersistenceBrokerFactory (PBF) instance failed, can't get PBF class object"); throw new OJBRuntimeException("Property for key '" + PBF_KEY + "' can not be found in properties file"); } PersistenceBrokerFactoryIF result = (PersistenceBrokerFactoryIF) ClassHelper.newInstance(pbfClass); configurator.configure(result); log.info("PersistencebrokerFactory class instantiated: " + result); return result; } catch (Exception e) {
4243444546474849505152
{ Configurator configurator = PersistenceBrokerFactory.getConfigurator(); LockingConfiguration config = (LockingConfiguration) configurator.getConfigurationFor(null); Class clazz = config.getLockMapClass(); LockMap map = (LockMap) clazz.newInstance(); configurator.configure(map); return map; } catch (Exception e) { return new InMemoryLockMapImpl();