Package org.pentaho.reporting.libraries.base.boot

Examples of org.pentaho.reporting.libraries.base.boot.ObjectFactory


    else
    {
      throw new XulException("Error getting Xul Database Dialog root, element of type: " + root);
    }

    final ObjectFactory objectFactory = ClassicEngineBoot.getInstance().getObjectFactory();
    final IDatabaseDialectService dialectService = objectFactory.get(IDatabaseDialectService.class);
    this.databaseTypeHelper = new DatabaseTypeHelper(dialectService.getDatabaseTypes());

  }
View Full Code Here


{
  private JndiDataSourceService fallbackService;

  public PooledWithJndiDataSourceService()
  {
    final ObjectFactory objectFactory = ClassicEngineBoot.getInstance().getObjectFactory();
    fallbackService = objectFactory.get(JndiDataSourceService.class);
  }
View Full Code Here

{
  private DataSourceCache cacheManager;

  public PooledDatasourceService()
  {
    final ObjectFactory objectFactory = ClassicEngineBoot.getInstance().getObjectFactory();
    final DataSourceCacheManager manager = objectFactory.get(DataSourceCacheManager.class);
    cacheManager = manager.getDataSourceCache();
  }
View Full Code Here

    ClassicEngineBoot.getInstance().start();
  }

  public void testCreatePool() throws Exception
  {
    final ObjectFactory objectFactory = ClassicEngineBoot.getInstance().getObjectFactory();
    final IDatabaseDialectService dialectService = objectFactory.get(IDatabaseDialectService.class);
    final DatabaseTypeHelper databaseTypeHelper = new DatabaseTypeHelper(dialectService.getDatabaseTypes());

    final DatabaseConnection con = new DatabaseConnection();
    con.setId("Memory");
    con.setName("Memory");
View Full Code Here

  private DatabaseConnection databaseConnection;
  private PropertiesReadHandler propertiesReadHandler;

  public DatabaseMetaReadHandler()
  {
    final ObjectFactory objectFactory = ClassicEngineBoot.getInstance().getObjectFactory();
    final IDatabaseDialectService dialectService = objectFactory.get(IDatabaseDialectService.class);
    this.databaseTypeHelper = new DatabaseTypeHelper(dialectService.getDatabaseTypes());
  }
View Full Code Here

    connection.setIndexTablespace(UUID.randomUUID().toString());
    connection.setInformixServername(UUID.randomUUID().toString());
    connection.setUsername(UUID.randomUUID().toString());
    connection.setPassword(UUID.randomUUID().toString());

    final ObjectFactory objectFactory = ClassicEngineBoot.getInstance().getObjectFactory();
    final IDatabaseDialectService dialectService = objectFactory.get(IDatabaseDialectService.class);
    final DatabaseTypeHelper databaseTypeHelper = new DatabaseTypeHelper(dialectService.getDatabaseTypes());

    connection.setDatabaseType(databaseTypeHelper.getDatabaseTypeByShortName("GENERIC"));
    return connection;
  }
View Full Code Here

  public void registerBundleDataCache()
  {
    try
    {
      final ObjectFactory objectFactory = LibLoaderBoot.getInstance().getObjectFactory();
      final ResourceBundleDataCacheProvider maybeDataCacheProvider = objectFactory.get(ResourceBundleDataCacheProvider.class);
      final ResourceBundleDataCache cache = maybeDataCacheProvider.createBundleDataCache();
      if (cache != null)
      {
        setBundleCache(cache);
      }
View Full Code Here

  public void registerDataCache()
  {
    try
    {
      final ObjectFactory objectFactory = LibLoaderBoot.getInstance().getObjectFactory();
      final ResourceDataCacheProvider maybeDataCacheProvider = objectFactory.get(ResourceDataCacheProvider.class);
      final ResourceDataCache cache = maybeDataCacheProvider.createDataCache();
      if (cache != null)
      {
        setDataCache(cache);
      }
View Full Code Here

  public void registerFactoryCache()
  {
    try
    {
      final ObjectFactory objectFactory = LibLoaderBoot.getInstance().getObjectFactory();
      final ResourceFactoryCacheProvider maybeDataCacheProvider = objectFactory.get(ResourceFactoryCacheProvider.class);
      final ResourceFactoryCache cache = maybeDataCacheProvider.createFactoryCache();
      if (cache != null)
      {
        setFactoryCache(cache);
      }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.boot.ObjectFactory

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.