BootstrapServiceRegistry instances. Provides registry for services needed for
most operations. This includes Integrator handling and ClassLoader handling.
Additionally responsible for building and managing the org.hibernate.boot.registry.selector.spi.StrategySelector
StandardServiceRegistryBuilder
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private List | |
| private ClassLoaderService | |
| private final LinkedHashSet | |
| private StrategySelectorBuilder | |
| private TcclLookupPrecedence |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BootstrapServiceRegistryBuilder | Returns: this, for method chainingThe class loader to use classLoader)Adds a provided |
| public BootstrapServiceRegistryBuilder | Returns: this, for method chainingThe class loader service to use classLoaderService)Adds a provided |
| public BootstrapServiceRegistryBuilder | Returns: this, for method chainingThe integrator to add. integrator)Add an |
| public < Defines the strategy type and makes sure that the strategy and implementation are of
compatible types. T> BootstrapServiceRegistryBuilder | Returns: this, for method chainingThe strategy strategy, String The registered name name, Class<? extends T> The strategy implementation Class implementation)Applies a named strategy implementation to the bootstrap registry. |
| public BootstrapServiceRegistryBuilder | Returns: this, for method chainingA provider for one or more available selectors strategyRegistrationProvider)Applies one or more strategy selectors announced as available by the passed announcer. |
| public void | applyTcclLookupPrecedence(TcclLookupPrecedence
The lookup precedence precedence)Defines when the lookup in the thread context |
| public BootstrapServiceRegistry | |
| public static void | |
| public BootstrapServiceRegistryBuilder | Returns: this, for method chainingBy default, when a ServiceRegistry is no longer referenced by any other registries as a parent it will be closed. |
| public BootstrapServiceRegistryBuilder | |
| public BootstrapServiceRegistryBuilder | |
| public BootstrapServiceRegistryBuilder | |
| public BootstrapServiceRegistryBuilder | |
| public <T> BootstrapServiceRegistryBuilder | withStrategySelector(Class<T> strategy, String name, Class<? extends T> implementation)
Deprecated
Use
applyStrategySelector instead
|
| public BootstrapServiceRegistryBuilder | withStrategySelectors(StrategyRegistrationProvider strategyRegistrationProvider)
Deprecated
Use
applyStrategySelectors instead
|
| autoCloseRegistry | back to summary |
|---|---|
| private boolean autoCloseRegistry | |
| providedClassLoaders | back to summary |
|---|---|
| private List<ClassLoader> providedClassLoaders | |
| providedClassLoaderService | back to summary |
|---|---|
| private ClassLoaderService providedClassLoaderService | |
| providedIntegrators | back to summary |
|---|---|
| private final LinkedHashSet<Integrator> providedIntegrators | |
| strategySelectorBuilder | back to summary |
|---|---|
| private StrategySelectorBuilder strategySelectorBuilder | |
| tcclLookupPrecedence | back to summary |
|---|---|
| private TcclLookupPrecedence tcclLookupPrecedence | |
| BootstrapServiceRegistryBuilder | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder() | |
| applyClassLoader | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder applyClassLoader(ClassLoader classLoader) Adds a provided
| |
| applyClassLoaderService | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder applyClassLoaderService(ClassLoaderService classLoaderService) Adds a provided
| |
| applyIntegrator | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder applyIntegrator(Integrator integrator) Add an
| |
| applyStrategySelector | back to summary |
|---|---|
| public <T> BootstrapServiceRegistryBuilder applyStrategySelector(Class<T> strategy, String name, Class<? extends T> implementation) Applies a named strategy implementation to the bootstrap registry.
| |
| applyStrategySelectors | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder applyStrategySelectors(StrategyRegistrationProvider strategyRegistrationProvider) Applies one or more strategy selectors announced as available by the passed announcer.
| |
| applyTcclLookupPrecedence | back to summary |
|---|---|
| public void applyTcclLookupPrecedence(TcclLookupPrecedence precedence) Defines when the lookup in the thread context
| |
| build | back to summary |
|---|---|
| public BootstrapServiceRegistry build() Build the bootstrap registry.
| |
| destroy | back to summary |
|---|---|
| public static void destroy(ServiceRegistry serviceRegistry) Destroy a service registry. Applications should only destroy registries they have explicitly created.
| |
| disableAutoClose | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder disableAutoClose() By default, when a ServiceRegistry is no longer referenced by any other registries as a parent it will be closed. Some applications that explicitly build "shared registries" may want to circumvent that behavior. This method indicates that the registry being built should not be automatically closed. The caller agrees to take responsibility to close it themselves.
| |
| enableAutoClose | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder enableAutoClose() See the discussion on
| |
| with | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder with(Integrator integrator)
Deprecated Use
| |
| with | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder with(ClassLoader classLoader)
Deprecated Use
| |
| with | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder with(ClassLoaderService classLoaderService)
Deprecated Use
| |
| withStrategySelector | back to summary |
|---|---|
| public <T> BootstrapServiceRegistryBuilder withStrategySelector(Class<T> strategy, String name, Class<? extends T> implementation)
Deprecated Use
| |
| withStrategySelectors | back to summary |
|---|---|
| public BootstrapServiceRegistryBuilder withStrategySelectors(StrategyRegistrationProvider strategyRegistrationProvider)
Deprecated Use
| |