Package org.hibernate.service.spi

Examples of org.hibernate.service.spi.ServiceException


    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


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

    resolvers.add( new StandardDialectResolver() );
View Full Code Here

    try {
      return customImplClass.newInstance();
    }
    catch ( Exception e ) {
      throw new ServiceException(
          "Could not initialize custom RegionFactory impl [" + customImplClass.getName() + "]", e
      );
    }
  }
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

        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

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