See: Description
Interface | Description |
---|---|
BootstrapServiceRegistry |
Provides the most basic services needed.
|
StandardServiceInitiator<R extends Service> |
Contract for an initiator of services that target the standard
ServiceRegistry . |
StandardServiceRegistry |
Specialization of the
ServiceRegistry contract mainly for type safety. |
Class | Description |
---|---|
BootstrapServiceRegistryBuilder |
Builder for
BootstrapServiceRegistry instances. |
StandardServiceRegistryBuilder |
Builder for standard
ServiceRegistry instances. |
Defines service registry contracts application are likely to want to utilize for configuring Hibernate behavior.
Service registries are designed to be hierarchical. This works in 2 fashions. First registries can "hide" or "override" services from parent registries. It also allows granular building of registries as services become available.
BootstrapServiceRegistry
is the base service registry, intended to be built via
BootstrapServiceRegistryBuilder
if you need customization. For non-customized
BootstrapServiceRegistry
usage, the BootstrapServiceRegistryBuilder
and
BootstrapServiceRegistry
can be bypassed altogether.
Usually the next level in a standard registry set up is the StandardServiceRegistry
, intended to be built
by the StandardServiceRegistryBuilder
if you need customization. The builder optionally takes the
BootstrapServiceRegistry
to use as a base; if none is provided a default one is generated assuming sensible
defaults in Java SE and EE environments, particularly in respect to Class loading.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.