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.
org. is the base service registry, and may be constructed via
org. if customization is needed. For non-customized
usage, these APIs may be bypassed completely.
The next level in a standard registry setup is the org.,
which may be constructed using org. if customization
is needed. The builder optionally accepts s org. to 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.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | BootstrapServiceRegistry
Provides the most basic services such as class loading. |
| public interface | StandardServiceInitiator<
The type of the service initiated. R extends Service>Contract for an initiator of services that target the standard |
| public interface | StandardServiceRegistry
Specialization of the |
| Modifier and Type | Class and Description |
|---|---|
| public class | BootstrapServiceRegistryBuilder
Builder for |
| public class | StandardServiceRegistryBuilder
Builder for standard |