Uses of Interface
org.glassfish.jersey.internal.inject.InjectionManager
-
Packages that use InjectionManager Package Description org.glassfish.jersey Common Jersey core classes.org.glassfish.jersey.internal Common Jersey internal API classes.org.glassfish.jersey.internal.inject Common Jersey internal injection utility classes.org.glassfish.jersey.message.internal Common Jersey internal messaging classes.org.glassfish.jersey.model.internal Common Jersey internal model related classes and interfaces.org.glassfish.jersey.process.internal Common Jersey internal processing classes.org.glassfish.jersey.spi Common Jersey service provider contract (SPI) classes. -
-
Uses of InjectionManager in org.glassfish.jersey
Methods in org.glassfish.jersey that return InjectionManager Modifier and Type Method Description static 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 InjectionManager Modifier and Type Method Description voidAutoDiscoverableConfigurator. 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 InjectionManager Constructor Description ExceptionMapperFactory(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 InjectionManager Modifier and Type Method Description default InjectionManagerInjectionManagerFactory. create()Load a new injection manager without parent and initial binder.InjectionManagerInjectionManagerFactory. create(Object parent)Load a new injection manager with parent object.static InjectionManagerInjections. createInjectionManager()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(Binder binder)Creates aInjectionManagerwith initial binder that is immediately registered.InjectionManagerInjectionManagerSupplier. getInjectionManager()Get injection manager.Methods in org.glassfish.jersey.internal.inject with parameters of type InjectionManager Modifier and Type Method Description static <T> voidProviderBinder. bindProvider(Class<T> providerClass, ContractProvider model, InjectionManager injectionManager)Bind contract provider model to a provider class using the supplied injection manager.static voidProviderBinder. bindProvider(Object providerInstance, ContractProvider model, InjectionManager injectionManager)Bind contract provider model to a provider instance using the supplied injection manager.static voidProviderBinder. bindProviders(ComponentBag componentBag, RuntimeType constrainedTo, Set<Class<?>> registeredClasses, InjectionManager injectionManager)Deprecated.static voidProviderBinder. 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 voidProviderBinder. 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 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 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 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 InjectionManager Constructor Description AggregatedProvider(InjectionManager manager, Configuration configuration)Create new aggregatedparam converter provider.OptionalCustomProvider(InjectionManager manager, boolean canReturnNull)ProviderBinder(InjectionManager injectionManager)Create new provider binder instance. -
Uses of InjectionManager in org.glassfish.jersey.message.internal
Methods in org.glassfish.jersey.message.internal that return InjectionManager Modifier and Type Method Description InjectionManagerReaderInterceptorExecutor. getInjectionManager()InjectionManagerWriterInterceptorExecutor. getInjectionManager()Methods in org.glassfish.jersey.message.internal with parameters of type InjectionManager Modifier and Type Method Description voidMessageBodyFactory.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 InjectionManager Constructor Description WriterInterceptorExecutor(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 InjectionManager Modifier and Type Field Description static 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 InjectionManager Modifier and Type Method Description InjectionManagerFeatureContextWrapper. getInjectionManager()Methods in org.glassfish.jersey.model.internal with parameters of type InjectionManager Modifier and Type Method Description voidCommonConfig. 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 InjectionManager Constructor Description FeatureContextWrapper(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 InjectionManager Modifier and Type Method Description voidRequestScope.RequestScopeConfigurator. init(InjectionManager injectionManagerFactory, BootstrapBag bootstrapBag)voidRequestScope.RequestScopeConfigurator. postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag)static voidExecutorProviders. registerExecutorBindings(InjectionManager injectionManager)Create qualifiedExecutorServiceandScheduledExecutorServiceinjection bindings based on the registered providers implementing theExecutorServiceProviderand/orScheduledExecutorServiceProviderSPI.static voidExecutorProviders. registerExecutorBindings(InjectionManager injectionManager, List<ExecutorServiceProvider> executorProviders, List<ScheduledExecutorServiceProvider> scheduledProviders)Create qualifiedExecutorServiceandScheduledExecutorServiceinjection bindings based on the registered providers implementing theExecutorServiceProviderand/orScheduledExecutorServiceProviderSPI.protected voidAbstractExecutorProvidersConfigurator. registerExecutors(InjectionManager injectionManager, ComponentBag componentBag, ExecutorServiceProvider defaultAsyncExecutorProvider, ScheduledExecutorServiceProvider defaultScheduledExecutorProvider, ManagedObjectsFinalizer finalizer)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 InjectionManager Modifier and Type Method Description voidComponentProvider. 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.
-