Package com.brienwheeler.lib.spring.beans

Examples of com.brienwheeler.lib.spring.beans.SmartClassPathXmlApplicationContext


          Configuration configuration = determineHibernateConfiguration();
 
          Settings settings = null;
          if (exec || mode == Mode.UPDATE)
          {
              ClassPathXmlApplicationContext newContext = new SmartClassPathXmlApplicationContext(emfContextLocation);
              try {
                // get a reference to the factory bean, don't have it create a new EntityManager
                  LocalContainerEntityManagerFactoryBean factoryBean = newContext.getBean("&" + emfContextBeanName, LocalContainerEntityManagerFactoryBean.class);
                  SettingsFactory settingsFactory = new InjectedDataSourceSettingsFactory(factoryBean.getDataSource());
                  settings = settingsFactory.buildSettings(new Properties());
              }
              finally {
                newContext.close();
              }
          }
         
          if (mode == Mode.UPDATE)
          {
View Full Code Here


          return resultingContexts;
        }
      }
     
      // not an alias, must be a location at this point
      AbstractApplicationContext context = new SmartClassPathXmlApplicationContext(contextSpecList);
      synchronized (contextLaunchOrder) {
        // this allows a context to close itself during its startup (schematool does this)
        if (context.isActive())
          contextLaunchOrder.add(context);
        context.addApplicationListener(this);
      }
      resultingContexts.add(context);
      contextAliasMap.put(contextSpecList, resultingContexts);
      return resultingContexts;
    }
View Full Code Here

TOP

Related Classes of com.brienwheeler.lib.spring.beans.SmartClassPathXmlApplicationContext

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.