Package com.foreach.across.core

Examples of com.foreach.across.core.AcrossException


      if ( AopUtils.isJdkDynamicProxy( instance ) ) {
        return getProxyTarget( ( (Advised) instance ).getTargetSource().getTarget() );
      }
    }
    catch ( Exception e ) {
      throw new AcrossException( e );
    }

    return instance;
  }
View Full Code Here


      databaseInfo.productVersion = metaData.getDatabaseProductVersion();

      return databaseInfo;
    }
    catch ( SQLException sqle ) {
      throw new AcrossException( "Could not retrieve DatabaseInfo for DataSource", sqle );
    }
  }
View Full Code Here

        found = true;
      }
    }

    if ( !found ) {
      throw new AcrossException( "Could not find any defined table with name " + original );
    }
  }
View Full Code Here

      if ( StringUtils.equals( original, databaseObject.getOriginalName() ) ) {
        return databaseObject.getCurrentName();
      }
    }

    throw new AcrossException( "Could not find any defined table with name " + original );
  }
View Full Code Here

      if ( resource.exists() ) {
        try {
          propertySources.addLast( new ResourcePropertySource( resource ) );
        }
        catch ( IOException ioe ) {
          throw new AcrossException( "Failed to load property resource " + resource, ioe );
        }
      }
    }

    addPropertySources( propertySources );
View Full Code Here

  @Bean(destroyMethod = "close")
  @Lazy
  @DependsOn({ "acrossCoreSchemaInstaller", AcrossContext.DATASOURCE })
  public SqlBasedDistributedLockManager sqlBasedDistributedLockManager( DataSource acrossDataSource ) {
    if ( acrossDataSource == null ) {
      throw new AcrossException(
          "Unable to create the DistributedLockRepository because there is no DataSource configured.  " +
              "A DataSource is required to install the core schema."
      );
    }
View Full Code Here

  @DependsOn({ "acrossCoreSchemaInstaller", AcrossContext.DATASOURCE })
  public AcrossInstallerRepository installerRepository() {
    DataSource dataSource = acrossDataSource();

    if ( dataSource == null ) {
      throw new AcrossException(
          "Unable to create the AcrossInstallerRepository because there is no DataSource configured.  " +
              "A DataSource is required if there is at least one non-disabled installer."
      );
    }
View Full Code Here

  @DependsOn(AcrossContext.DATASOURCE)
  public AcrossCoreSchemaInstaller acrossCoreSchemaInstaller() {
    DataSource dataSource = acrossDataSource();

    if ( dataSource == null ) {
      throw new AcrossException(
          "Unable to create the AcrossCoreSchemaInstaller because there is no DataSource configured.  " +
              "A DataSource is required if there is at least one non-disabled installer."
      );
    }
View Full Code Here

TOP

Related Classes of com.foreach.across.core.AcrossException

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.