Uses of Interface
org.glassfish.jersey.internal.inject.InjectionManager
Packages that use InjectionManager
Package
Description
Common Jersey core classes.
Common Jersey internal API classes.
Common Jersey internal injection utility classes.
Common Jersey internal messaging classes.
Common Jersey internal model related classes and interfaces.
Common Jersey internal processing 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 InjectionManagerInjectionManagerProvider.getInjectionManager(FeatureContext featureContext) Extract and return injection manager fromfeatureContext.static InjectionManagerInjectionManagerProvider.getInjectionManager(ReaderInterceptorContext readerInterceptorContext) Extract and return injection manager fromreaderInterceptorContext.static InjectionManagerInjectionManagerProvider.getInjectionManager(WriterInterceptorContext writerInterceptorContext) Extract and return injection manager fromwriterInterceptorContext. -
Uses of InjectionManager in org.glassfish.jersey.internal
Methods in org.glassfish.jersey.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoidAutoDiscoverableConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) voidBootstrapConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) Pre-initialization method should only register services intoInjectionManagerand populateBootstrapBag.voidContextResolverFactory.ContextResolversConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) voidDynamicFeatureConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) voidExceptionMapperFactory.ExceptionMappersConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) voidFeatureConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) voidJaxrsProviders.ProvidersConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) default voidBootstrapConfigurator.postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag) Post-initialization method can get services fromInjectionManagerand is not able to register the new one because injection manager is already completed.voidContextResolverFactory.ContextResolversConfigurator.postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag) voidExceptionMapperFactory.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 managerinstance that will be used to look up all providers implementingExceptionMapperinterface. -
Uses of InjectionManager in org.glassfish.jersey.internal.inject
Methods in org.glassfish.jersey.internal.inject that return InjectionManagerModifier and TypeMethodDescriptiondefault InjectionManagerInjectionManagerFactory.create()Load a new injection manager without parent and initial binder.Load a new injection manager with parent object.InjectionManagerFactory.create(Object parent, Configuration configuration) Load a new injection manager with parent object for a given RuntimeType.static InjectionManagerInjections.createInjectionManager()Creates anInjectionManagerwithout parent and initial binder.static InjectionManagerInjections.createInjectionManager(Configuration configuration) Creates anInjectionManagerwithout parent and initial binder.static InjectionManagerInjections.createInjectionManager(RuntimeType type) Creates anInjectionManagerwithout parent and initial binder.static InjectionManagerInjections.createInjectionManager(Object parent) Creates an unnamed, parentedInjectionManager.static InjectionManagerInjections.createInjectionManager(Object parent, Configuration configuration) Creates an unnamed, parentedInjectionManager.static InjectionManagerInjections.createInjectionManager(Binder binder) Creates aInjectionManagerwith 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> 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 managercontainer.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 managercontainer 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 managercontainer.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 managercontainer.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 managercontainer and automatically sorted usingranked comparator.static <T> Collection<ServiceHolder<T>>Providers.getAllServiceHolders(InjectionManager injectionManager, Class<T> contract) Get collection of allServiceHolders bound for providers (custom and default) registered for the given service provider contract in the underlyinginjection managercontainer.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 managercontainer.static <T> TInjections.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 managercontainer.voidParamConverterConfigurator.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.protectedOptionalCustomProvider(InjectionManager manager, boolean canReturnNull) -
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 TypeMethodDescriptionvoidMessageBodyFactory.MessageBodyWorkersConfigurator.init(InjectionManager injectionManager, BootstrapBag bootstrapBag) voidMessageBodyFactory.initialize(InjectionManager injectionManager) Must be initialize at the time of completed populatedInjectionManager.voidMessageBodyFactory.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_ONLYA 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 TypeMethodDescriptionvoidCommonConfig.configureAutoDiscoverableProviders(InjectionManager injectionManager, Collection<AutoDiscoverable> autoDiscoverables, boolean forcedOnly) Configureauto-discoverablesin the injection manager.voidCommonConfig.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 thePredicatewhich 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) IfTobject is registered inComponentBagusing theBinder,Tis 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.process.internal
Methods in org.glassfish.jersey.process.internal with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoidRequestScope.RequestScopeConfigurator.init(InjectionManager injectionManagerFactory, BootstrapBag bootstrapBag) voidRequestScope.RequestScopeConfigurator.postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag) static voidExecutorProviders.registerExecutorBindings(InjectionManager injectionManager, RuntimeType runtimeType) Create qualifiedExecutorServiceandScheduledExecutorServiceinjection bindings based on the registered providers implementing theExecutorServiceProviderand/orScheduledExecutorServiceProviderSPI.static voidExecutorProviders.registerExecutorBindings(InjectionManager injectionManager, List<ExecutorServiceProvider> executorProviders, List<ScheduledExecutorServiceProvider> scheduledProviders, RuntimeType runtimeType) Create qualifiedExecutorServiceandScheduledExecutorServiceinjection bindings based on the registered providers implementing theExecutorServiceProviderand/orScheduledExecutorServiceProviderSPI.protected voidAbstractExecutorProvidersConfigurator.registerExecutors(InjectionManager injectionManager, ComponentBag componentBag, ExecutorServiceProvider defaultAsyncExecutorProvider, ScheduledExecutorServiceProvider defaultScheduledExecutorProvider, ManagedObjectsFinalizer finalizer, RuntimeType runtimeType) Retrieves registeredExecutorServiceProviderandScheduledExecutorServiceProviderby an application and adds the default implementations of those interfaces to binds them intoInjectionManager. -
Uses of InjectionManager in org.glassfish.jersey.spi
Methods in org.glassfish.jersey.spi with parameters of type InjectionManagerModifier and TypeMethodDescriptionvoidComponentProvider.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.