Uses of Interface
org.glassfish.jersey.internal.inject.InjectionManager
Packages that use InjectionManager
Package
Description
Common Jersey core classes.
Jersey client-side classes.
Provides core client filters.
Jersey internal package supporting Jersey CDI integration.
Jersey internal SPI to support custom defined HK2 injection binding for Jersey/CDI applications.
Common Jersey internal API classes.
Common Jersey internal injection utility classes.
Common Jersey internal messaging classes.
Common Jersey internal model related classes and interfaces.
Jersey OAuth 1 Signature API and Implementation.
Common Jersey internal processing classes.
Jersey server-side classes.
Jersey server-side JAX-RS injection support classes.
Jersey server-side internal classes related to request and response processing.
Jersey server-side application & resource modeling classes.
Jersey server-side internal model related and routing helper classes.
Jersey server-side service provider contract (SPI) classes.
Jersey server-side WADL configuration classes.
Jersey server-side WADL internal classes.
Common Jersey service provider contract (SPI) classes.
-
Uses of InjectionManager in org.glassfish.jersey
Methods in org.glassfish.jersey that return InjectionManagerModifier and TypeMethodDescriptionstatic InjectionManager
InjectionManagerProvider.getInjectionManager
(FeatureContext featureContext) Extract and return injection manager fromfeatureContext
.static InjectionManager
InjectionManagerProvider.getInjectionManager
(ReaderInterceptorContext readerInterceptorContext) Extract and return injection manager fromreaderInterceptorContext
.static InjectionManager
InjectionManagerProvider.getInjectionManager
(WriterInterceptorContext writerInterceptorContext) Extract and return injection manager fromwriterInterceptorContext
. -
Uses of InjectionManager in org.glassfish.jersey.client
Methods in org.glassfish.jersey.client that return InjectionManagerModifier and TypeMethodDescriptionClientRequest.getInjectionManager()
ClientResponse.getInjectionManager()
static InjectionManager
InjectionManagerClientProvider.getInjectionManager
(ClientRequestContext clientRequestContext) Extract and return injection manager fromclientRequestContext
.static InjectionManager
InjectionManagerClientProvider.getInjectionManager
(ClientResponseContext clientResponseContext) Extract and return injection manager fromclientResponseContext
.Constructors in org.glassfish.jersey.client with parameters of type InjectionManagerModifierConstructorDescriptionRequestProcessingInitializationStage
(jakarta.inject.Provider<Ref<ClientRequest>> requestRefProvider, MessageBodyWorkers workersProvider, InjectionManager injectionManager) Create newMessageBodyWorkers
initialization function for requests and responses. -
Uses of InjectionManager in org.glassfish.jersey.client.filter
Constructors in org.glassfish.jersey.client.filter with parameters of type InjectionManager -
Uses of InjectionManager in org.glassfish.jersey.client.internal.inject
Methods in org.glassfish.jersey.client.internal.inject with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
ParameterUpdaterConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) -
Uses of InjectionManager in org.glassfish.jersey.ext.cdi1x.internal
Methods in org.glassfish.jersey.ext.cdi1x.internal that return InjectionManagerModifier and TypeMethodDescriptionCdiComponentProvider.getEffectiveInjectionManager()
Gets you effective injection manager.GenericInjectionManagerStore.getEffectiveInjectionManager()
abstract InjectionManager
GenericInjectionManagerStore.lookupInjectionManager()
CDI container specific method to obtain the actual injection manager belonging to the Jersey application where the current HTTP requests is being processed.Methods in org.glassfish.jersey.ext.cdi1x.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
CdiComponentProvider.initialize
(InjectionManager injectionManager) void
CdiServerComponentProvider.initialize
(InjectionManager injectionManager) void
GenericInjectionManagerStore.registerInjectionManager
(InjectionManager injectionManager) Constructors in org.glassfish.jersey.ext.cdi1x.internal with parameters of type InjectionManagerModifierConstructorDescriptionAbstractCdiBeanSupplier
(Class<T> rawType, InjectionManager injectionManager, jakarta.enterprise.inject.spi.BeanManager beanManager, boolean cdiManaged) Create new factory instance for given type and bean manager.GenericCdiBeanSupplier
(Class rawType, InjectionManager injectionManager, jakarta.enterprise.inject.spi.BeanManager beanManager, boolean cdiManaged) RequestScopedCdiBeanSupplier
(Class rawType, InjectionManager locator, jakarta.enterprise.inject.spi.BeanManager beanManager, boolean cdiManaged) -
Uses of InjectionManager in org.glassfish.jersey.ext.cdi1x.internal.spi
Methods in org.glassfish.jersey.ext.cdi1x.internal.spi that return InjectionManagerModifier and TypeMethodDescriptionInjectionManagerStore.getEffectiveInjectionManager()
Obtain the effectiveinjection manager
.Methods in org.glassfish.jersey.ext.cdi1x.internal.spi with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
InjectionManagerStore.registerInjectionManager
(InjectionManager injectionManager) Register a newinjection manager
with this manager.void
InjectionManagerInjectedTarget.setInjectionManager
(InjectionManager injectionManager) Set the locator to be used to co-inject this injection target. -
Uses of InjectionManager in org.glassfish.jersey.inject.cdi.se
Classes in org.glassfish.jersey.inject.cdi.se that implement InjectionManagerModifier and TypeClassDescriptionclass
Implementation ofInjectionManager
that starts CDI SE container, scans all users bean according to beans.xml file and register Jersey's internal beans usingSeBeanRegisterExtension
extension.Methods in org.glassfish.jersey.inject.cdi.se that return InjectionManagerModifier and TypeMethodDescription -
Uses of InjectionManager in org.glassfish.jersey.inject.hk2
Classes in org.glassfish.jersey.inject.hk2 that implement InjectionManagerModifier and TypeClassDescriptionclass
Implementation ofInjectionManager
that is able to delay service's registration and injection toDelayedHk2InjectionManager.completeRegistration()
phase.class
Implementation ofInjectionManager
that is able to register and inject services.Methods in org.glassfish.jersey.inject.hk2 that return InjectionManagerModifier and TypeMethodDescription -
Uses of InjectionManager in org.glassfish.jersey.internal
Methods in org.glassfish.jersey.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
AutoDiscoverableConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
BootstrapConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Pre-initialization method should only register services intoInjectionManager
and populateBootstrapBag
.void
ContextResolverFactory.ContextResolversConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
DynamicFeatureConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
ExceptionMapperFactory.ExceptionMappersConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
FeatureConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
JaxrsProviders.ProvidersConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) default void
BootstrapConfigurator.postInit
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Post-initialization method can get services fromInjectionManager
and is not able to register the new one because injection manager is already completed.void
ContextResolverFactory.ContextResolversConfigurator.postInit
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
ExceptionMapperFactory.ExceptionMappersConfigurator.postInit
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Constructors in org.glassfish.jersey.internal with parameters of type InjectionManagerModifierConstructorDescriptionExceptionMapperFactory
(InjectionManager injectionManager) Create new exception mapper factory initialized withinjection manager
instance that will be used to look up all providers implementingExceptionMapper
interface. -
Uses of InjectionManager in org.glassfish.jersey.internal.inject
Methods in org.glassfish.jersey.internal.inject that return InjectionManagerModifier and TypeMethodDescriptiondefault InjectionManager
InjectionManagerFactory.create()
Load a new injection manager without parent and initial binder.Load a new injection manager with parent object.static InjectionManager
Injections.createInjectionManager()
Creates anInjectionManager
without parent and initial binder.static InjectionManager
Injections.createInjectionManager
(RuntimeType type) Creates anInjectionManager
without parent and initial binder.static InjectionManager
Injections.createInjectionManager
(Object parent) Creates an unnamed, parentedInjectionManager
.static InjectionManager
Injections.createInjectionManager
(Binder binder) Creates aInjectionManager
with initial binder that is immediately registered.InjectionManagerSupplier.getInjectionManager()
Get injection manager.Methods in org.glassfish.jersey.internal.inject with parameters of type InjectionManagerModifier and TypeMethodDescriptionstatic <T> void
ProviderBinder.bindProvider
(Class<T> providerClass, ContractProvider model, InjectionManager injectionManager) Bind contract provider model to a provider class using the supplied injection manager.static void
ProviderBinder.bindProvider
(Object providerInstance, ContractProvider model, InjectionManager injectionManager) Bind contract provider model to a provider instance using the supplied injection manager.static void
ProviderBinder.bindProviders
(ComponentBag componentBag, RuntimeType constrainedTo, Set<Class<?>> registeredClasses, InjectionManager injectionManager) Deprecated.static void
ProviderBinder.bindProviders
(ComponentBag componentBag, RuntimeType constrainedTo, Set<Class<?>> registeredClasses, InjectionManager injectionManager, Collection<ComponentProvider> componentProviders) Bind all providers contained inproviderBag
(classes and instances) using injection manager.static void
ProviderBinder.bindProviders
(ComponentBag componentBag, InjectionManager injectionManager) Bind all providers contained inproviderBag
(classes and instances) using injection manager.static <T> Iterable<T>
Providers.getAllProviders
(InjectionManager injectionManager, Class<T> contract) Get the iterable of all providers (custom and default) registered for the given service provider contract in the underlyinginjection manager
container.static <T> Iterable<T>
Providers.getAllProviders
(InjectionManager injectionManager, Class<T> contract, Comparator<T> comparator) Get the iterable of all providers (custom and default) registered for the given service provider contract in the underlyinginjection manager
container ordered based on the givencomparator
.static <T> Iterable<T>
Providers.getAllProviders
(InjectionManager injectionManager, Class<T> contract, RankedComparator<T> comparator) Get the sorted iterable of allproviders
(custom and default) registered for the given service provider contract in the underlyinginjection manager
container.static <T> Iterable<RankedProvider<T>>
Providers.getAllRankedProviders
(InjectionManager injectionManager, Class<T> contract) Get the iterable of allproviders
(custom and default) registered for the given service provider contract in the underlyinginjection manager
container.static <T> Iterable<T>
Providers.getAllRankedSortedProviders
(InjectionManager injectionManager, Class<T> contract) Get the iterable of all providers (custom and default) registered for the given service provider contract in the underlyinginjection manager
container and automatically sorted usingranked comparator
.static <T> Collection<ServiceHolder<T>>
Providers.getAllServiceHolders
(InjectionManager injectionManager, Class<T> contract) Get collection of allServiceHolder
s bound for providers (custom and default) registered for the given service provider contract in the underlyinginjection manager
container.static Collection<Binding>
Bindings.getBindings
(InjectionManager injectionManager, Binder binder) static <T> Set<T>
Providers.getCustomProviders
(InjectionManager injectionManager, Class<T> contract) Get the set of all custom providers registered for the given service provider contract in the underlyinginjection manager
container.static <T> T
Injections.getOrCreate
(InjectionManager injectionManager, Class<T> clazz) Get the class by contract or create and inject a new instance.static <T> Set<T>
Providers.getProviders
(InjectionManager injectionManager, Class<T> contract) Get the set of default providers registered for the given service provider contract in the underlyinginjection manager
container.void
ParamConverterConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Constructors in org.glassfish.jersey.internal.inject with parameters of type InjectionManagerModifierConstructorDescriptionAggregatedProvider
(InjectionManager manager, Configuration configuration) Create new aggregatedparam converter provider
.protected
OptionalCustomProvider
(InjectionManager manager, boolean canReturnNull) ProviderBinder
(InjectionManager injectionManager) Create new provider binder instance. -
Uses of InjectionManager in org.glassfish.jersey.jaxb.internal
Constructors in org.glassfish.jersey.jaxb.internal with parameters of type InjectionManagerModifierConstructorDescriptionDocumentBuilderFactoryInjectionProvider
(InjectionManager injectionManager, Configuration config) Create new document builder factory provider.SaxParserFactoryInjectionProvider
(InjectionManager injectionManager, Configuration config) Create new SAX parser factory provider.TransformerFactoryInjectionProvider
(InjectionManager injectionManager, Configuration config) Create new transformer factory provider.XmlInputFactoryInjectionProvider
(InjectionManager injectionManager, Configuration config) Create new XML input factory provider. -
Uses of InjectionManager in org.glassfish.jersey.message.internal
Methods in org.glassfish.jersey.message.internal that return InjectionManagerModifier and TypeMethodDescriptionReaderInterceptorExecutor.getInjectionManager()
WriterInterceptorExecutor.getInjectionManager()
Methods in org.glassfish.jersey.message.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
MessageBodyFactory.MessageBodyWorkersConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
MessageBodyFactory.initialize
(InjectionManager injectionManager) Must be initialize at the time of completed populatedInjectionManager
.void
MessageBodyFactory.MessageBodyWorkersConfigurator.postInit
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Constructors in org.glassfish.jersey.message.internal with parameters of type InjectionManagerModifierConstructorDescriptionWriterInterceptorExecutor
(Object entity, Class<?> rawType, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> headers, PropertiesDelegate propertiesDelegate, OutputStream entityStream, MessageBodyWorkers workers, Iterable<WriterInterceptor> writerInterceptors, InjectionManager injectionManager) Constructs a new executor to write given type to providedentityStream
. -
Uses of InjectionManager in org.glassfish.jersey.model.internal
Fields in org.glassfish.jersey.model.internal with type parameters of type InjectionManagerModifier and TypeFieldDescriptionstatic final BiPredicate<ContractProvider,
InjectionManager> ComponentBag.EXTERNAL_ONLY
A filtering strategy that includes only models that contain contract registrable byInjectionManager
.Methods in org.glassfish.jersey.model.internal that return InjectionManagerMethods in org.glassfish.jersey.model.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
CommonConfig.configureAutoDiscoverableProviders
(InjectionManager injectionManager, Collection<AutoDiscoverable> autoDiscoverables, boolean forcedOnly) Configureauto-discoverables
in the injection manager.void
CommonConfig.configureMetaProviders
(InjectionManager injectionManager, ManagedObjectsFinalizer finalizer) Configure binders in the injection manager and enable JAX-RS features.static Predicate<ContractProvider>
ComponentBag.excludeMetaProviders
(InjectionManager injectionManager) A method creates thePredicate
which is able to filter all Jersey meta-providers along with the components which is able to register the current usedInjectionManager
.static <T> List<T>
ComponentBag.getFromBinders
(InjectionManager injectionManager, ComponentBag componentBag, Function<Object, T> cast, Predicate<Binding> filter) IfT
object is registered inComponentBag
using theBinder
,T
is not visible using the methods for getting classes and instancesComponentBag.getClasses(Predicate)
andComponentBag.getInstances(Predicate)
.Constructors in org.glassfish.jersey.model.internal with parameters of type InjectionManagerModifierConstructorDescriptionFeatureContextWrapper
(FeatureContext context, InjectionManager injectionManager) Create a new instance of wrapper.ManagedObjectsFinalizer
(InjectionManager injectionManager) Creates a new instance ofManagedObjectsFinalizer
. -
Uses of InjectionManager in org.glassfish.jersey.oauth1.signature
Constructors in org.glassfish.jersey.oauth1.signature with parameters of type InjectionManagerModifierConstructorDescriptionOAuth1Signature
(InjectionManager injectionManager) Create a new instance of the OAuth signature configured with injectedServiceLocator
. -
Uses of InjectionManager in org.glassfish.jersey.process.internal
Methods in org.glassfish.jersey.process.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
RequestScope.RequestScopeConfigurator.init
(InjectionManager injectionManagerFactory, BootstrapBag bootstrapBag) void
RequestScope.RequestScopeConfigurator.postInit
(InjectionManager injectionManager, BootstrapBag bootstrapBag) static void
ExecutorProviders.registerExecutorBindings
(InjectionManager injectionManager) Create qualifiedExecutorService
andScheduledExecutorService
injection bindings based on the registered providers implementing theExecutorServiceProvider
and/orScheduledExecutorServiceProvider
SPI.static void
ExecutorProviders.registerExecutorBindings
(InjectionManager injectionManager, List<ExecutorServiceProvider> executorProviders, List<ScheduledExecutorServiceProvider> scheduledProviders) Create qualifiedExecutorService
andScheduledExecutorService
injection bindings based on the registered providers implementing theExecutorServiceProvider
and/orScheduledExecutorServiceProvider
SPI.protected void
AbstractExecutorProvidersConfigurator.registerExecutors
(InjectionManager injectionManager, ComponentBag componentBag, ExecutorServiceProvider defaultAsyncExecutorProvider, ScheduledExecutorServiceProvider defaultScheduledExecutorProvider, ManagedObjectsFinalizer finalizer) Retrieves registeredExecutorServiceProvider
andScheduledExecutorServiceProvider
by an application and adds the default implementations of those interfaces to binds them intoInjectionManager
. -
Uses of InjectionManager in org.glassfish.jersey.server
Methods in org.glassfish.jersey.server that return InjectionManagerModifier and TypeMethodDescriptionApplicationHandler.getInjectionManager()
ReturnsInjectionManager
relevant to current application.Methods in org.glassfish.jersey.server with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
ResourceModelConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) -
Uses of InjectionManager in org.glassfish.jersey.server.internal.inject
Methods in org.glassfish.jersey.server.internal.inject with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
ParamExtractorConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
ValueParamProviderConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
ValueParamProviderConfigurator.postInit
(InjectionManager injectionManager, BootstrapBag bootstrapBag) -
Uses of InjectionManager in org.glassfish.jersey.server.internal.process
Methods in org.glassfish.jersey.server.internal.process that return InjectionManagerModifier and TypeMethodDescriptionRequestProcessingContext.injectionManager()
Get injection manager.Methods in org.glassfish.jersey.server.internal.process with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
RequestProcessingConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Constructors in org.glassfish.jersey.server.internal.process with parameters of type InjectionManagerModifierConstructorDescriptionReferencesInitializer
(InjectionManager injectionManager, jakarta.inject.Provider<RequestProcessingContextReference> processingContextRefProvider) Injection constructor.RequestProcessingContext
(InjectionManager injectionManager, ContainerRequest request, UriRoutingContext routingContext, RequestEventBuilder monitoringEventBuilder, RequestEventListener monitoringEventListener) Create new request processing context. -
Uses of InjectionManager in org.glassfish.jersey.server.model
Methods in org.glassfish.jersey.server.model with parameters of type InjectionManagerModifier and TypeMethodDescriptionabstract Object
MethodHandler.getInstance
(InjectionManager injectionManager) Get the injected resource method handler instance.ResourceMethodInvoker.Builder.injectionManager
(InjectionManager injectionManager) Set runtime DI injection manager. -
Uses of InjectionManager in org.glassfish.jersey.server.model.internal
Methods in org.glassfish.jersey.server.model.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
ResourceMethodInvokerConfigurator.init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) void
ResourceMethodInvokerConfigurator.postInit
(InjectionManager injectionManager, BootstrapBag bootstrapBag) -
Uses of InjectionManager in org.glassfish.jersey.server.spi
Methods in org.glassfish.jersey.server.spi with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
RequestScopedInitializer.initialize
(InjectionManager injectionManager) Perform request-scoped initialization.ExternalRequestScope.open
(InjectionManager injectionManager) Invoked when a new request gets started.void
ExternalRequestScope.resume
(ExternalRequestContext<T> c, InjectionManager injectionManager) Resume request associated with provided context.void
ExternalRequestScope.suspend
(ExternalRequestContext<T> c, InjectionManager injectionManager) Suspend request associated with provided context. -
Uses of InjectionManager in org.glassfish.jersey.server.wadl.config
Methods in org.glassfish.jersey.server.wadl.config with parameters of type InjectionManagerModifier and TypeMethodDescriptionWadlGeneratorConfig.createWadlGenerator
(InjectionManager injectionManager) Create a new instance ofWadlGenerator
, based on theWadlGeneratorDescription
s provided byWadlGeneratorConfig.configure()
. -
Uses of InjectionManager in org.glassfish.jersey.server.wadl.internal
Constructors in org.glassfish.jersey.server.wadl.internal with parameters of type InjectionManagerModifierConstructorDescriptionWadlApplicationContextImpl
(InjectionManager injectionManager, Configuration configuration, ExtendedResourceContext resourceContext) Injection constructor. -
Uses of InjectionManager in org.glassfish.jersey.spi
Methods in org.glassfish.jersey.spi with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoid
ComponentProvider.initialize
(InjectionManager injectionManager) Initializes the component provider with a reference to a injection manager instance, which will get used in the application to manage individual components.