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 specificSupplier
instance.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 java.lang.annotation.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 fromInjectionManager
along with other information about the provided service. -
Class Summary Class Description AbstractBinder Implementation ofBinder
interface 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 java.lang.annotation.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 Custom
annotation 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 ofInjectionResolver
and its a concrete type.Injections Injection binding utility methods.InstanceBinding<T> Injection binding description of a bean bound directly as a specific instance.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.ReferencingFactory.EmptyReferenceFactory<T> ReferencingFactory.InitializedReferenceFactory<T> ServiceHolderImpl<T> Implementation of the instance keeper which kept the instance of the class fromInjectionManager
and 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. -
Enum Summary Enum Description Providers.ProviderRuntime -
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
. -
Annotation Types Summary Annotation Type Description Custom Qualifier annotation
used 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 likeSingleton
scope, except on a per-thread basis.