Examples of buildSettings()


Examples of org.hibernate.cfg.AnnotationConfiguration.buildSettings()

      final Logger silentLogger = Logger.getLogger(SchemaCommand.class.getCanonicalName());
      silentLogger.setLevel(Level.OFF);
     
      final HibernateModule module = new HibernateModule(silentLogger, properties, configuration.getEntityPackages());
      final AnnotationConfiguration hibernateConfig = module.getConfiguration();
      final Settings settings = hibernateConfig.buildSettings();
     
     
     
      if (migration) {
        try {
View Full Code Here

Examples of org.hibernate.cfg.Configuration.buildSettings()

    public void testCacheLevelStaleWritesFail() throws Throwable {
       
        Configuration cfg = CacheTestUtil.buildConfiguration("", MultiplexedJBossCacheRegionFactory.class, true, false);
        cfg.setProperty(getConfigResourceKey(), getConfigResourceLocation());
       
        Settings settings = cfg.buildSettings();
       
        Fqn<String> fqn = Fqn.fromString("/whatever");
        JBossCacheRegionFactory regionFactory = (JBossCacheRegionFactory) settings.getRegionFactory();
        regionFactory.start(settings, cfg.getProperties());
       
View Full Code Here

Examples of org.hibernate.cfg.Configuration.buildSettings()

        Configuration cfg = CacheTestUtil.buildConfiguration("", JBossCacheRegionFactory.class, true, true);
       
        CacheInstanceManager cim = new MultiplexingCacheInstanceManager();
        JBossCacheRegionFactory regionFactory = new JBossCacheRegionFactory(cim);
       
        Settings settings = cfg.buildSettings();
        Properties properties = cfg.getProperties();
       
        regionFactory.start(settings, properties);       
        // Ensure we clean up
        registerFactory(regionFactory);
View Full Code Here

Examples of org.hibernate.cfg.Configuration.buildSettings()

        Configuration cfg = CacheTestUtil.buildConfiguration("", JBossCacheRegionFactory.class, true, true);
       
        CacheInstanceManager cim = new MultiplexingCacheInstanceManager();
        JBossCacheRegionFactory regionFactory = new JBossCacheRegionFactory(cim);
       
        Settings settings = cfg.buildSettings();
        Properties properties = cfg.getProperties();
       
        regionFactory.start(settings, properties);       
        // Ensure we clean up
        registerFactory(regionFactory);
View Full Code Here

Examples of org.hibernate.cfg.Configuration.buildSettings()

    public void testCacheLevelStaleWritesFail() throws Throwable {
       
        Configuration cfg = CacheTestUtil.buildConfiguration("", MultiplexedJBossCacheRegionFactory.class, true, false);
        cfg.setProperty(getConfigResourceKey(), getConfigResourceLocation());
       
        Settings settings = cfg.buildSettings();
       
        Fqn<String> fqn = Fqn.fromString("/whatever");
        JBossCacheRegionFactory regionFactory = (JBossCacheRegionFactory) settings.getRegionFactory();
        regionFactory.start(settings, cfg.getProperties());
       
View Full Code Here

Examples of org.hibernate.cfg.Configuration.buildSettings()

   
    StandardServiceRegistryBuilder builder = new StandardServiceRegistryBuilder();
    builder.applySettings(configuration.getProperties());
    ServiceRegistry serviceRegistry = builder.build();
   
    Settings testSettings = configuration.buildSettings(serviceRegistry);
   
    JdbcServices jdbcServices = serviceRegistry.getService(JdbcServices.class);
    Connection con = null;
        try {
   
View Full Code Here

Examples of org.hibernate.cfg.Configuration.buildSettings()

 
    SchemaByMetaDataDetector analyzer = new SchemaByMetaDataDetector();
    ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder()
      .applySettings( configuration.getProperties() )
      .build();
    analyzer.initialize( configuration, configuration.buildSettings(serviceRegistry) );
   
    Iterator tableMappings = configuration.getTableMappings();
   
   
    while ( tableMappings.hasNext() ) {
View Full Code Here

Examples of org.hibernate.cfg.SettingsFactory.buildSettings()

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

Examples of org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenSettingsBuilder.buildSettings()

            request.setUserSettingsFile(userSettings);
        }
        request.setSystemProperties(SecurityActions.getProperties());

        MavenSettingsBuilder builder = new MavenSettingsBuilder();
        this.settings = builder.buildSettings(request);

        // ensure we keep offline(boolean) if previously set
        if (programmaticOffline != null) {
            this.settings.setOffline(programmaticOffline.booleanValue());
        }
View Full Code Here

Examples of org.olat.modules.scorm.contentpackaging.ScormPackageHandler.buildSettings()

    // check if Scormpackage has been changed so that the reload-settings.xml will be updated.
    try {
      ScormPackageHandler pm = new ScormPackageHandler(this);
      if (!sequenceFile.exists() || pm.checkIfScormPackageHasChanged()) {
        try {
          pm.buildSettings();
        } catch (NoItemFoundException e) {
          throw new OLATRuntimeException(SettingsHandlerImpl.class, "Problem loading the reload-settings.xml file. No item found in scorm item sequence file!",e);
        }
      }
    } catch (JDOMException e) {
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.