| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| public static final String | |
| private final boolean | |
| private boolean | |
| private Set | |
| private final ConcurrentMap | |
| private static final CoreMessageLogger | |
| private volatile ServiceRegistryImplementor | |
| private final ConcurrentMap | |
| private final List | |
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | |
| public | |
| public | AbstractServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry, boolean autoCloseRegistry)
|
| Modifier and Type | Method and Description |
|---|---|
| private <R extends Service> void | |
| protected <R extends Service> R | |
| protected <R extends Service> void | |
| protected <R extends Service> void | |
| public synchronized void | deRegisterChild(ServiceRegistryImplementor child)
Implements org. |
| public synchronized void | |
| public ServiceRegistry | getParentServiceRegistry()
Implements org. |
| public <R extends Service> R | getService(Class<R>
The service role serviceRole)Implements org. |
| private <R extends Service> R | |
| public <R extends Service> void | injectDependencies(ServiceBinding<R> serviceBinding)
Implements org. |
| public boolean | |
| public <R extends Service> ServiceBinding | locateServiceBinding(Class<R>
The service role for which to locate a binding. serviceRole)Implements org. |
| protected <R extends Service> 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 | resetParent(BootstrapServiceRegistry newParent)
Very advanced and tricky to handle: not designed for this. |
| 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 boolean autoCloseRegistry | |
| childRegistries | back to summary |
|---|---|
| private Set<ServiceRegistryImplementor> childRegistries | |
| initializedServiceByRole | back to summary |
|---|---|
| private final ConcurrentMap<Class<T>, Service> initializedServiceByRole | |
| log | back to summary |
|---|---|
| private static final CoreMessageLogger log | |
| parent | back to summary |
|---|---|
| private volatile ServiceRegistryImplementor parent | |
| roleXref | back to summary |
|---|---|
| private final ConcurrentMap<Class<T>, Class<T>> roleXref | |
| serviceBindingList | back to summary |
|---|---|
| private final List<ServiceBinding<R extends Service>> serviceBindingList | |
| serviceBindingMap | back to summary |
|---|---|
| private final ConcurrentMap<Class<T>, ServiceBinding<R extends Service>> serviceBindingMap | |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
protected AbstractServiceRegistryImpl()
| |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
protected AbstractServiceRegistryImpl(boolean autoCloseRegistry)
| |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
| protected AbstractServiceRegistryImpl(ServiceRegistryImplementor parent) | |
| AbstractServiceRegistryImpl | back to summary |
|---|---|
| protected AbstractServiceRegistryImpl(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> 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
| |
| getParentServiceRegistry | back to summary |
|---|---|
| public ServiceRegistry getParentServiceRegistry() Implements org. Doc from org. Retrieve this registry's parent registry.
| |
| getService | back to summary |
|---|---|
| public <R extends Service> R getService(Class<R> serviceRole) Implements org. Doc from org. Retrieve a service by role. If service is not found, but a Note We cannot return | |
| initializeService | back to summary |
|---|---|
| private <R extends Service> 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> 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> 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() | |
| registerAlternate | back to summary |
|---|---|
| private void registerAlternate(Class<T> alternate, Class<T> 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(BootstrapServiceRegistry newParent) Very advanced and tricky to handle: not designed for this. Intended for experiments only! | |
| 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<R extends Service>> action) | |