public class BootstrapServiceRegistryBuilder extends Object
BootstrapServiceRegistry instances.  Provides registry for services needed for
 most operations.  This includes Integrator handling and ClassLoader handling.
 Additionally responsible for building and managing the StrategySelectorStandardServiceRegistryBuilder| Constructor and Description | 
|---|
BootstrapServiceRegistryBuilder()  | 
| Modifier and Type | Method and Description | 
|---|---|
BootstrapServiceRegistry | 
build()
Build the bootstrap registry. 
 | 
BootstrapServiceRegistryBuilder | 
disableAutoClose()
By default, when a ServiceRegistry is no longer referenced by any other
 registries as a parent it will be closed. 
 | 
BootstrapServiceRegistryBuilder | 
enableAutoClose()
See the discussion on  
disableAutoClose(). | 
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 | 
<T> BootstrapServiceRegistryBuilder | 
withStrategySelector(Class<T> strategy,
                    String name,
                    Class<? extends T> implementation)
Applies a named strategy implementation to the bootstrap registry. 
 | 
BootstrapServiceRegistryBuilder | 
withStrategySelectors(StrategyRegistrationProvider strategyRegistrationProvider)
Applies one or more strategy selectors announced as available by the passed announcer. 
 | 
public BootstrapServiceRegistryBuilder with(Integrator integrator)
Integrator to be applied to the bootstrap registry.integrator - The integrator to add.this, for method chainingpublic BootstrapServiceRegistryBuilder with(ClassLoader classLoader)
ClassLoader for use in class-loading and resource-lookup.classLoader - The class loader to usethis, for method chainingpublic BootstrapServiceRegistryBuilder with(ClassLoaderService classLoaderService)
ClassLoaderService for use in class-loading and resource-lookup.classLoaderService - The class loader service to usethis, for method chaining@Deprecated public BootstrapServiceRegistryBuilder withApplicationClassLoader(ClassLoader classLoader)
with(ClassLoader) insteadClassLoader as the application class loader for the bootstrap registry.classLoader - The class loader to usethis, for method chaining@Deprecated public BootstrapServiceRegistryBuilder withResourceClassLoader(ClassLoader classLoader)
with(ClassLoader) insteadClassLoader as the resource class loader for the bootstrap registry.classLoader - The class loader to usethis, for method chaining@Deprecated public BootstrapServiceRegistryBuilder withHibernateClassLoader(ClassLoader classLoader)
with(ClassLoader) insteadClassLoader as the Hibernate class loader for the bootstrap registry.classLoader - The class loader to usethis, for method chaining@Deprecated public BootstrapServiceRegistryBuilder withEnvironmentClassLoader(ClassLoader classLoader)
with(ClassLoader) insteadClassLoader as the environment (or system) class loader for the bootstrap registry.classLoader - The class loader to usethis, for method chainingpublic <T> BootstrapServiceRegistryBuilder withStrategySelector(Class<T> strategy, String name, Class<? extends T> implementation)
T - Defines the strategy type and makes sure that the strategy and implementation are of
 compatible types.strategy - The strategyname - The registered nameimplementation - The strategy implementation Classthis, for method chainingStrategySelector.registerStrategyImplementor(Class, String, Class)public BootstrapServiceRegistryBuilder withStrategySelectors(StrategyRegistrationProvider strategyRegistrationProvider)
strategyRegistrationProvider - An provider for one or more available selectorsthis, for method chainingStrategySelector.registerStrategyImplementor(Class, String, Class)public BootstrapServiceRegistryBuilder disableAutoClose()
public BootstrapServiceRegistryBuilder enableAutoClose()
disableAutoClose().  This method enables
 the auto-closing.public BootstrapServiceRegistry build()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.