Examples of ICdfEnvironment


Examples of org.pentaho.cdf.environment.ICdfEnvironment

      logger.debug( "Initializing PluginHibernate" );

      // Start our own hibernate session, copying everything from the original
      configuration = new Configuration();

      ICdfEnvironment cdfEnvironment = CdfEngine.getEnvironment();

      final String hibernateAvailable =
          cdfEnvironment.getResourceLoader().getPluginSetting( PluginHibernateUtil.class,
              CdfConstants.PLUGIN_SETTINGS_HIBERNATE_AVAILABLE );

      if ( "true".equalsIgnoreCase( hibernateAvailable ) ) {
        configuration.setProperties( cdfEnvironment.getHibernateConfigurations().getConfiguration().getProperties() );
        sessionFactory = configuration.buildSessionFactory();
      }
      initialized = true;
      return true;
    }
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.