public final class ExecutorProviders extends Object
Modifier and Type | Method and Description |
---|---|
static void |
registerExecutorBindings(InjectionManager injectionManager)
Create qualified
ExecutorService and ScheduledExecutorService injection bindings based on the registered
providers implementing the ExecutorServiceProvider and/or ScheduledExecutorServiceProvider SPI. |
static void |
registerExecutorBindings(InjectionManager injectionManager,
List<ExecutorServiceProvider> executorProviders,
List<ScheduledExecutorServiceProvider> scheduledProviders)
Create qualified
ExecutorService and ScheduledExecutorService injection bindings based on the registered
providers implementing the ExecutorServiceProvider and/or ScheduledExecutorServiceProvider SPI. |
public static void registerExecutorBindings(InjectionManager injectionManager)
ExecutorService
and ScheduledExecutorService
injection bindings based on the registered
providers implementing the ExecutorServiceProvider
and/or ScheduledExecutorServiceProvider
SPI.
This method supports creation of qualified injection bindings based on custom qualifier annotations
attached to the registered provider implementation classes as well as named injection bindings based on the Named
qualifier annotation attached to the registered provider implementation classes. ExecutorServiceProvider
and
ScheduledExecutorServiceProvider
will be retrieved from InjectionManager
.
injectionManager
- application's injection manager.public static void registerExecutorBindings(InjectionManager injectionManager, List<ExecutorServiceProvider> executorProviders, List<ScheduledExecutorServiceProvider> scheduledProviders)
ExecutorService
and ScheduledExecutorService
injection bindings based on the registered
providers implementing the ExecutorServiceProvider
and/or ScheduledExecutorServiceProvider
SPI.
This method supports creation of qualified injection bindings based on custom qualifier annotations
attached to the registered provider implementation classes as well as named injection bindings based on the Named
qualifier annotation attached to the registered provider implementation classes.
injectionManager
- injection manager to register newly created executor bindings.executorProviders
- all executor providers registered internally in Jersey and in configuration.scheduledProviders
- all scheduled executor providers registered internally in Jersey and in configuration.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.