ServiceRegistry and ServiceRegistryImplementor contracts.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| public static final String | |
| private final boolean | |
| private final boolean | |
| private Set | |
| private final ConcurrentMap | |
| private static final CoreMessageLogger | |
| private volatile @Nullable ServiceRegistryImplementor | |
| private final ConcurrentMap | |
| private final List | |
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| public | |
| public | AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry, boolean autoCloseRegistry)
|
| Modifier and Type | Method and Description |
|---|---|
| private <R extends Service> void | |
| protected <R extends Service> @Nullable R | |
| protected <R extends Service> void | |
| protected <R extends Service> void | |
| public synchronized void | deRegisterChild(ServiceRegistryImplementor child)
Implements org. |
| public synchronized void | |
| public <T extends Service> @Nullable T | fromRegistryOrChildren(Class<T> serviceRole)
Implements org. |
| public static <T extends Service> @Nullable T | fromRegistryOrChildren(Class<T> serviceRole, ServiceRegistryImplementor serviceRegistry, @Nullable Set<ServiceRegistryImplementor> childRegistries)
|
| public @Nullable ServiceRegistry | getParentServiceRegistry()
Implements org. |
| public <R extends Service> @Nullable R | getService(Class<R>
The service role serviceRole)Implements org. |
| protected void | |
| private <R extends Service> @Nullable R | |
| public <R extends Service> void | injectDependencies(ServiceBinding<R> serviceBinding)
Implements org. |
| public boolean | |
| public <R extends Service> @Nullable ServiceBinding | locateServiceBinding(Class<R>
The service role for which to locate a binding. serviceRole)Implements org. |
| protected <R extends Service> @Nullable ServiceBinding | |
| private <T extends Service> void | |
| public synchronized void | |
| private void | |
| public synchronized void | registerChild(ServiceRegistryImplementor child)
Implements org. |
| protected <R extends Service> void | |
| public synchronized void | |
| public <R extends Service> void | startService(ServiceBinding<R> serviceBinding)
Implements org. |
| public synchronized <R extends Service> void | stopService(ServiceBinding<R> binding)
Implements org. |
| protected void |
| active | back to summary |
|---|---|
| private final AtomicBoolean active | |
| ALLOW_CRAWLING | back to summary |
|---|---|
| public static final String ALLOW_CRAWLING | |
| allowCrawling | back to summary |
|---|---|
| private final boolean allowCrawling | |
| autoCloseRegistry | back to summary |
|---|---|
| private final boolean autoCloseRegistry | |
| childRegistries | back to summary |
|---|---|
| private Set<ServiceRegistryImplementor> childRegistries | |
| initializedServiceByRole | back to summary |
|---|---|
| private final ConcurrentMap<Class<?>, Service> initializedServiceByRole | |
| log | back to summary |
|---|---|
| private static final CoreMessageLogger log | |
| parent | back to summary |
|---|---|
| private volatile @Nullable ServiceRegistryImplementor parent | |
| roleXref | back to summary |
|---|---|
| private final ConcurrentMap<Class<?>, Class<?>> roleXref | |
| serviceBindingList | back to summary |
|---|---|
| private final List<ServiceBinding<?>> serviceBindingList | |
| serviceBindingMap | back to summary |
|---|---|
| private final ConcurrentMap<Class<?>, ServiceBinding<?>> serviceBindingMap | |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
| protected AbstractServiceRegistryImpl(@Nullable ServiceRegistryImplementor parent) | |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
| protected AbstractServiceRegistryImpl(@Nullable ServiceRegistryImplementor parent, boolean autoCloseRegistry) | |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
| public AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry) | |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
| public AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry, boolean autoCloseRegistry) | |
| applyInjections | back to summary |
|---|---|
| private <R extends Service> void applyInjections(R service) | |
| createService | back to summary |
|---|---|
| protected <R extends Service> @Nullable R createService(ServiceBinding<R> serviceBinding) | |
| createServiceBinding | back to summary |
|---|---|
| protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) | |
| createServiceBinding | back to summary |
|---|---|
| protected <R extends Service> void createServiceBinding(ProvidedService<R> providedService) | |
| deRegisterChild | back to summary |
|---|---|
| public synchronized void deRegisterChild(ServiceRegistryImplementor child) Implements org. Doc from org. When a registry is created with a parent, the parent is notified of the child via this callback.
| |
| destroy | back to summary |
|---|---|
| public synchronized void destroy() Implements org. Doc from org. Release resources
| |
| fromRegistryOrChildren | back to summary |
|---|---|
| public <T extends Service> @Nullable T fromRegistryOrChildren(Class<T> serviceRole) Implements org.
| |
| fromRegistryOrChildren | back to summary |
|---|---|
| public static <T extends Service> @Nullable T fromRegistryOrChildren(Class<T> serviceRole, ServiceRegistryImplementor serviceRegistry, @Nullable Set<ServiceRegistryImplementor> childRegistries) | |
| getParentServiceRegistry | back to summary |
|---|---|
| public @Nullable ServiceRegistry getParentServiceRegistry() Implements org. Doc from org. Retrieve this registry's parent registry.
| |
| getService | back to summary |
|---|---|
| public <R extends Service> @Nullable R getService(Class<R> serviceRole) Implements org. Doc from org. Retrieve a service by role. If service is not found, but a | |
| initialize | back to summary |
|---|---|
| protected void initialize() | |
| initializeService | back to summary |
|---|---|
| private <R extends Service> @Nullable R initializeService(ServiceBinding<R> serviceBinding) | |
| injectDependencies | back to summary |
|---|---|
| public <R extends Service> void injectDependencies(ServiceBinding<R> serviceBinding) Implements org.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() | |
| locateServiceBinding | back to summary |
|---|---|
| public <R extends Service> @Nullable ServiceBinding Implements org. Doc from org. Locate the binding for the given role. Should, generally speaking, look into parent registry if one.
| |
| locateServiceBinding | back to summary |
|---|---|
protected <R extends Service> @Nullable ServiceBinding
| |
| processInjection | back to summary |
|---|---|
| private <T extends Service> void processInjection(T service, Method injectionMethod, InjectService injectService) | |
| reactivate | back to summary |
|---|---|
| public synchronized void reactivate() Not intended for general use. We need the ability to stop and "reactivate" a registry to allow experimentation with technologies such as GraalVM, Quarkus and Cri-O. | |
| registerAlternate | back to summary |
|---|---|
| private void registerAlternate(Class<?> alternate, Class<?> target) | |
| registerChild | back to summary |
|---|---|
| public synchronized void registerChild(ServiceRegistryImplementor child) Implements org. Doc from org. When a registry is created with a parent, the parent is notified of the child via this callback.
| |
| registerService | back to summary |
|---|---|
| protected <R extends Service> void registerService(ServiceBinding<R> serviceBinding, R service) | |
| resetParent | back to summary |
|---|---|
| public synchronized void resetParent(@Nullable BootstrapServiceRegistry newParent) Not intended for general use. We need the ability to stop and "reactivate" a registry to allow experimentation with technologies such as GraalVM, Quarkus and Cri-O. | |
| startService | back to summary |
|---|---|
| public <R extends Service> void startService(ServiceBinding<R> serviceBinding) Implements org.
| |
| stopService | back to summary |
|---|---|
| public synchronized <R extends Service> void stopService(ServiceBinding<R> binding) Implements org.
| |
| visitServiceBindings | back to summary |
|---|---|
| protected void visitServiceBindings(Consumer<ServiceBinding<?>> action) | |