Package org.hibernate.boot.registry
Service registries are hierarchical. That is, a child registry may "hide" or "override" services from its parent registries. This allows for granular construction of registries as services become available.
BootstrapServiceRegistryis the base service registry, and may be constructed viaBootstrapServiceRegistryBuilderif customization is needed. For non-customized usage, these APIs may be bypassed completely.The next level in a standard registry setup is the
StandardServiceRegistry, which may be constructed usingStandardServiceRegistryBuilderif customization is needed. The builder optionally accepts sBootstrapServiceRegistryto use as a base. If none is provided, a default instance is produced, assuming sensible defaults in Java SE and EE environments, particularly with respect to classloading.
- Related PackagesPackageDescriptionThis package contains the interfaces that make up the bootstrap API for Hibernate.The internals for building service registries.Defines a feature set around named registration of implementations of various contracts and the ability to select those implementations.
- ClassDescriptionProvides the most basic services such as class loading.Builder for
BootstrapServiceRegistryinstances.StandardServiceInitiator<R extendsService>Contract for an initiator of services that target the standardServiceRegistry.Specialization of theServiceRegistrycontract mainly for type safety.Builder for standardServiceRegistryinstances.