org.hibernate.service
Class BootstrapServiceRegistryBuilder

java.lang.Object
  extended by org.hibernate.service.BootstrapServiceRegistryBuilder

public class BootstrapServiceRegistryBuilder
extends Object

Builder for bootstrap ServiceRegistry instances.

See Also:
BootstrapServiceRegistryImpl, ServiceRegistryBuilder.ServiceRegistryBuilder(BootstrapServiceRegistry)

Constructor Summary
BootstrapServiceRegistryBuilder()
           
 
Method Summary
 BootstrapServiceRegistry build()
          Build the bootstrap registry.
 BootstrapServiceRegistryBuilder with(ClassLoader classLoader)
          Adds a provided ClassLoader for use in class-loading and resource-lookup
 BootstrapServiceRegistryBuilder with(ClassLoaderService classLoaderService)
          Adds a provided ClassLoaderService for use in class-loading and resource-lookup
 BootstrapServiceRegistryBuilder with(Integrator integrator)
          Add an Integrator to be applied to the bootstrap registry.
 BootstrapServiceRegistryBuilder withApplicationClassLoader(ClassLoader classLoader)
          Deprecated. Use with(ClassLoader) instead
 BootstrapServiceRegistryBuilder withEnvironmentClassLoader(ClassLoader classLoader)
          Deprecated. Use with(ClassLoader) instead
 BootstrapServiceRegistryBuilder withHibernateClassLoader(ClassLoader classLoader)
          Deprecated. Use with(ClassLoader) instead
 BootstrapServiceRegistryBuilder withResourceClassLoader(ClassLoader classLoader)
          Deprecated. Use with(ClassLoader) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapServiceRegistryBuilder

public BootstrapServiceRegistryBuilder()
Method Detail

with

public BootstrapServiceRegistryBuilder with(Integrator integrator)
Add an Integrator to be applied to the bootstrap registry.

Parameters:
integrator - The integrator to add.
Returns:
this, for method chaining

withApplicationClassLoader

@Deprecated
public BootstrapServiceRegistryBuilder withApplicationClassLoader(ClassLoader classLoader)
Deprecated. Use with(ClassLoader) instead

Applies the specified ClassLoader as the application class loader for the bootstrap registry

Parameters:
classLoader - The class loader to use
Returns:
this, for method chaining

with

public BootstrapServiceRegistryBuilder with(ClassLoader classLoader)
Adds a provided ClassLoader for use in class-loading and resource-lookup

Parameters:
classLoader - The class loader to use
Returns:
this, for method chaining

with

public BootstrapServiceRegistryBuilder with(ClassLoaderService classLoaderService)
Adds a provided ClassLoaderService for use in class-loading and resource-lookup

Parameters:
classLoaderService - The class loader to use
Returns:
this, for method chaining

withResourceClassLoader

@Deprecated
public BootstrapServiceRegistryBuilder withResourceClassLoader(ClassLoader classLoader)
Deprecated. Use with(ClassLoader) instead

Applies the specified ClassLoader as the resource class loader for the bootstrap registry

Parameters:
classLoader - The class loader to use
Returns:
this, for method chaining

withHibernateClassLoader

@Deprecated
public BootstrapServiceRegistryBuilder withHibernateClassLoader(ClassLoader classLoader)
Deprecated. Use with(ClassLoader) instead

Applies the specified ClassLoader as the Hibernate class loader for the bootstrap registry

Parameters:
classLoader - The class loader to use
Returns:
this, for method chaining

withEnvironmentClassLoader

@Deprecated
public BootstrapServiceRegistryBuilder withEnvironmentClassLoader(ClassLoader classLoader)
Deprecated. Use with(ClassLoader) instead

Applies the specified ClassLoader as the environment (or system) class loader for the bootstrap registry

Parameters:
classLoader - The class loader to use
Returns:
this, for method chaining

build

public BootstrapServiceRegistry build()
Build the bootstrap registry.

Returns:
The built bootstrap registry


Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.