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

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

Hibernate ORM ServiceRegistryImplementor examples from Open Source projects
This code example shows how to use the following methods: getService
			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: getService
			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: getService
	public TransactionFactory initiateService(Map configurationValues, ServiceRegistryImplementor registry) { 
		final Object strategy = configurationValues.get( Environment.TRANSACTION_STRATEGY ); 
		if ( TransactionFactory.class.isInstance( strategy ) ) { 
			return (TransactionFactory) strategy; 
		} 
 
		if ( strategy == null ) { 
            LOG.usingDefaultTransactionStrategy(); 
			return new JdbcTransactionFactory(); 
		} 
 
		final String strategyClassName = mapLegacyNames( strategy.toString() ); 
        LOG.transactionStrategy(strategyClassName); 
 
		ClassLoaderService classLoaderService = registry.getService( ClassLoaderService.class ); 
		try { 
			return (TransactionFactory) classLoaderService.classForName( strategyClassName ).newInstance(); 
		} 
		catch ( Exception e ) { 
			throw new HibernateException( "Unable to instantiate specified TransactionFactory class [" + strategyClassName + "]", e ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getService
		catch (Exception e) {
			throw new ServiceException( "Could not build explicit BatchBuilder [" + builderClassName + "]", e );
		} 
	} 
} 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getService
 
	// 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"; 
		} 
 
		return name;
	} 
} 
Full Snippet Info
4
CodeRank