Package org.hibernate.service.spi

Examples of org.hibernate.service.spi.ServiceException


  }

  @Override
  public <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator) {
    // the bootstrap registry should currently be made up of only directly built services.
    throw new ServiceException( "Boot-strap registry should only contain directly built services" );
  }
View Full Code Here


    }
    catch ( ServiceException e ) {
      throw e;
    }
    catch ( Exception e ) {
      throw new ServiceException( "Unable to create requested service [" + serviceBinding.getServiceRole().getName() + "]", e );
    }
  }
View Full Code Here

    return null;
  }

  @Override
  public <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator) {
    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }
View Full Code Here

    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }

  @Override
  public <R extends Service> void configureService(ServiceBinding<R> binding) {
    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }
View Full Code Here

    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }

  @Override
  public <R extends Service> void injectDependencies(ServiceBinding<R> binding) {
    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }
View Full Code Here

    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }

  @Override
  public <R extends Service> void startService(ServiceBinding<R> binding) {
    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }
View Full Code Here

    final String builderClassName = builder.toString();
    try {
      return (BatchBuilder) registry.getService( ClassLoaderService.class ).classForName( builderClassName ).newInstance();
    }
    catch (Exception e) {
      throw new ServiceException( "Could not build explicit BatchBuilder [" + builderClassName + "]", e );
    }
  }
View Full Code Here

        : locate( registry, customImpl.toString() );
    try {
      return customImplClass.newInstance();
    }
    catch (Exception e) {
      throw new ServiceException( "Could not initialize custom PersisterFactory impl [" + customImplClass.getName() + "]", e );
    }
  }
View Full Code Here

    try {
      return customImplClass.newInstance();
    }
    catch (Exception e) {
      throw new ServiceException( "Could not initialize custom PersisterClassResolver impl [" + customImplClass.getName() + "]", e );
    }
  }
View Full Code Here

      final Class<Driver> driverClass = classLoaderService.classForName( driverClassName );
      try {
        return driverClass.newInstance();
      }
      catch ( Exception e ) {
        throw new ServiceException( "Specified JDBC Driver " + driverClassName + " could not be loaded", e );
      }
    }

    try {
      return (Driver) Class.forName( driverClassName ).newInstance();
    }
    catch ( Exception e1 ) {
      try{
        return (Driver) ReflectHelper.classForName( driverClassName ).newInstance();
      }
      catch ( Exception e2 ) {
        throw new ServiceException( "Specified JDBC Driver " + driverClassName + " could not be loaded", e2 );
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.service.spi.ServiceException

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.