Package org.hibernate.service.spi

Examples of org.hibernate.service.spi.ServiceException


    }
    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

    }
    catch ( ServiceException e ) {
      throw e;
    }
    catch ( Exception e ) {
      throw new ServiceException( "Unable to create requested service [" + serviceBinding.getServiceRole().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

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

        }
        catch (HibernateException e) {
          throw e;
        }
        catch (Exception e) {
          throw new ServiceException( "Unable to instantiate named dialect resolver [" + resolverImplName + "]", e );
        }
      }
    }
  }
View Full Code Here

        try {
          implClass = classLoaderService.classForName( className );
        }
        catch (ClassLoadingException cle) {
          log.warn( "Unable to locate specified class [" + className + "]", cle );
          throw new ServiceException( "Unable to locate specified multi-tenant connection provider [" + className + "]" );
        }
      }

      try {
        return implClass.newInstance();
      }
      catch (Exception e) {
        log.warn( "Unable to instantiate specified class [" + implClass.getName() + "]", e );
        throw new ServiceException( "Unable to instantiate specified multi-tenant connection provider [" + implClass.getName() + "]" );
      }
    }
  }
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.