Package org.glassfish.jersey.internal.inject
Common Jersey internal injection utility classes.
-
Interface Summary Interface Description Binder Interface dedicated to keep some level of code compatibility between previous HK2 implementation and new DI SPI.ContextInjectionResolver A marker interface toInjectionResolver<Context>.DisposableSupplier<T> Supplier extension which is able to callSupplier.get()method to create a new object and also callDisposableSupplier.dispose(Object)to make some cleaning code regarding the instance and the specificSupplierinstance.ForeignDescriptor The descriptor holder for an externally provided DI providers.ForeignRequestScopeBridge Internal service to help determine which HK2 factory provided components should be treated as request scoped.Injectee An Injectee represents the point of injection.InjectionManager Interface provides the communication API between Jersey and Dependency Injection provider.InjectionManagerFactory Factory which is able to createInjectionManager.InjectionManagerSupplier Implementation of this interface is capable of returningInjectionManager.InjectionResolver<T extends Annotation> This class allows users to provide a custom injection target for any annotation (including@Inject).ServiceHolder<T> Implementation of this class is used as a holder for service instance fromInjectionManageralong with other information about the provided service. -
Class Summary Class Description AbstractBinder Implementation ofBinderinterface dedicated to keep some level of code compatibility between previous HK2 implementation and new DI SPI.AliasBinding Injection binding description used to describe the aliases to mainBinding.AnnotationLiteral<T extends Annotation> Supports inline instantiation of annotation type instances.Binding<T,D extends Binding> Abstract injection binding description of a bean.Bindings Utility class to create a new injection binding descriptions for arbitrary Java beans.ClassBinding<T> Injection binding description of a bean bound via its a Java class.CompositeBinder Utility class which is able to install several binders and register them as a whole.CustomAnnotationLiteral Customannotation literal.ForeignDescriptorImpl The descriptor holder for an externally provided DI providers.InjecteeImpl An Injectee represents the point of injection.InjectionResolverBinding<T extends InjectionResolver> Class which has the fields containing the instance ofInjectionResolverand its a concrete type.Injections Injection binding utility methods.InstanceBinding<T> Injection binding description of a bean bound directly as a specific instance.ParamConverterConfigurator Configurator which initializes and registerParamConverters.AggregatedProviderinstances intoInjectionManager.ParamConverterFactory An aggregateparam converter providerthat loads all the registeredParamConverterProviderimplementations.ParamConverters Container of several differentparam converter providersimplementations.ParamConverters.AggregatedProvider Aggregatedparam converter provider.ParamConverters.CharacterProvider ParamConverters.DateProvider Provider ofparam converterthat convert the supplied string into a JavaDateinstance using conversion method from thehttp date formatterutility class.ParamConverters.InputStreamProvider Provider ofparam converterthat convert the supplied string into a JavaInputStreaminstance.ParamConverters.OptionalCustomProvider Provider ofparam converterthat produce the Optional instance by invokingParamConverterProvider.ParamConverters.OptionalProvider Provider ofparam converterthat produce the OptionalInt, OptionalDouble or OptionalLong instance.ParamConverters.StringConstructor Provider ofparam converterthat produce the target Java type instance by invoking a singleStringparameter constructor on the target type.ParamConverters.TypeFromString Provider ofparam converterthat produce the target Java type instance by invoking a staticfromString(String)method on the target type.ParamConverters.TypeFromStringEnum Provider ofparam converterthat produce the target Javaenumtype instance by invoking a staticfromString(String)method on the target enum type.ParamConverters.TypeValueOf Provider ofparam converterthat produce the target Java type instance by invoking a staticvalueOf(String)method on the target type.PrimitiveMapper Utility class that maps the primitive types to their respective classes as well as the default values as defined by the JAX-RS specification.ProviderBinder Class used for registration of the custom providers into injection manager.Providers Utility class providing a set of utility methods for easier and more type-safe interaction with an injection layer.ReferencingFactory<T> Factory that provides injection of the referenced instance.ServiceHolderImpl<T> Implementation of the instance keeper which kept the instance of the class fromInjectionManagerand the other information about this instance.SupplierClassBinding<T> Injection binding description of a bean bound indirectly via a supplier class producing instances of the bound type.SupplierInstanceBinding<T> Injection binding description of a bean bound indirectly via an supplier producing instances of the bound type. -
Exception Summary Exception Description ExtractorException A runtime exception that contains a cause, a checked or runtime exception, that may be passed to the cause of aWebApplicationException.UpdaterException A runtime exception that contains a cause, a checked or runtime exception, that may be passed to the cause of aWebApplicationException. -
Annotation Types Summary Annotation Type Description Custom Qualifier annotationused to annotate HK2 injections and bindings for user custom providers.PerLookup PerLookup is the scope for objects that are created every time they are looked up.PerThread PerThread is a scope that operates likeSingletonscope, except on a per-thread basis.