Package org.apache.ojb.broker.util.configuration

Examples of org.apache.ojb.broker.util.configuration.Configurator.configure()


            {
                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)
        {
View Full Code Here


            {
                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)
        {
View Full Code Here

        {
          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();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.