Best code examples for Hibernate ORM ServiceException class (org.hibernate.service.spi.ServiceException)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM ServiceException class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM ServiceException examples from Open Source projects
This code example shows how to use the following methods:
 
		try { 
			return customImplClass.newInstance();
		} 
		catch ( Exception e ) {
			throw new ServiceException(
					"Could not initialize custom RegionFactory impl [" + customImplClass.getName() + "]", e
			); 
		} 
	} 
 
	// todo this shouldn't be public (nor really static): 
	// hack for org.hibernate.cfg.SettingsFactory.createRegionFactory() 
	public static String mapLegacyNames(final String name) {
		if ( "org.hibernate.cache.EhCacheRegionFactory".equals( name ) ) {
			return "org.hibernate.cache.ehcache.EhCacheRegionFactory"; 
		} 
 
		if ( "org.hibernate.cache.SingletonEhCacheRegionFactory".equals( name ) ) {
			return "org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory"; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
				: locate( registry, customImpl.toString() );
		try { 
			return customImplClass.newInstance();
		} 
		catch (Exception e) {
			throw new ServiceException( "Could not initialize custom PersisterFactory impl [" + customImplClass.getName() + "]", e );
		} 
	} 
 
	private Class<? extends PersisterFactory> locate(ServiceRegistryImplementor registry, String className) {
		return registry.getService( ClassLoaderService.class ).classForName( className );
	} 
} 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
 
		try { 
			return customImplClass.newInstance();
		} 
		catch (Exception e) {
			throw new ServiceException( "Could not initialize custom PersisterClassResolver impl [" + customImplClass.getName() + "]", e );
		} 
	} 
 
	private Class<? extends PersisterClassResolver> locate(ServiceRegistryImplementor registry, String className) {
		return registry.getService( ClassLoaderService.class ).classForName( className );
	} 
} 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
	} 
 
	@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" );
	} 
 
} 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
		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 );
		} 
	} 
} 
Full Snippet Info
4
CodeRank