Package | Description |
---|---|
org.glassfish.jersey.inject.hk2 | |
org.glassfish.jersey.internal.inject |
Common Jersey internal injection utility classes.
|
org.glassfish.jersey.server.internal.inject |
Jersey server-side JAX-RS injection support classes.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ForeignDescriptor,java.lang.Object> |
Hk2RequestScope.Instance.store
A map of injectable instances in this scope.
|
Modifier and Type | Method and Description |
---|---|
private ForeignDescriptor |
AbstractHk2InjectionManager.createAndTranslateForeignDescriptor(Binding binding) |
ForeignDescriptor |
AbstractHk2InjectionManager.createForeignDescriptor(Binding binding) |
Modifier and Type | Method and Description |
---|---|
boolean |
Hk2RequestScope.Instance.contains(ForeignDescriptor provider) |
<T> T |
Hk2RequestScope.Instance.get(ForeignDescriptor descriptor)
Get an inhabitant stored in the scope instance that matches the active descriptor .
|
java.lang.Object |
AbstractHk2InjectionManager.getInstance(ForeignDescriptor foreignDescriptor) |
<T> T |
Hk2RequestScope.Instance.put(ForeignDescriptor descriptor,
T value)
Store a new inhabitant for the given descriptor.
|
<T> void |
Hk2RequestScope.Instance.remove(ForeignDescriptor descriptor)
Remove a value for the descriptor if present in the scope instance store.
|
Modifier and Type | Class and Description |
---|---|
class |
ForeignDescriptorImpl
The descriptor holder for an externally provided DI providers.
|
Modifier and Type | Field and Description |
---|---|
private ForeignDescriptor |
InjecteeImpl.injecteeDescriptor |
Modifier and Type | Method and Description |
---|---|
ForeignDescriptor |
InjectionManager.createForeignDescriptor(Binding binding)
Creates and registers the descriptor in the underlying DI provider and returns
ForeignDescriptor that is specific
descriptor for the underlying DI provider. |
ForeignDescriptor |
Injectee.getInjecteeDescriptor()
This method returns foreign descriptor of the current injectee that means that the DI provider is able to store its
specific descriptor and that use it in the descriptor processing.
|
ForeignDescriptor |
InjecteeImpl.getInjecteeDescriptor() |
static ForeignDescriptor |
ForeignDescriptor.wrap(java.lang.Object descriptor)
Wraps incoming descriptor instance and provides a default implementation of
ForeignDescriptor . |
static ForeignDescriptor |
ForeignDescriptor.wrap(java.lang.Object descriptor,
java.util.function.Consumer<java.lang.Object> disposeInstance)
Wraps incoming descriptor instance and provides a default implementation of
ForeignDescriptor along with a
Consumer for a disposing an instance created using a given descriptor. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
InjectionManager.getInstance(ForeignDescriptor foreignDescriptor)
Gets the service instance according to
ForeignDescriptor which is specific to the underlying DI provider. |
void |
InjecteeImpl.setInjecteeDescriptor(ForeignDescriptor injecteeDescriptor)
Sets the descriptor for this Injectee.
|
Modifier and Type | Field and Description |
---|---|
private Cache<java.lang.Class<?>,ForeignDescriptor> |
BeanParamValueParamProvider.BeanParamValueProvider.descriptorCache |
private Cache<Parameter,ForeignDescriptor> |
DelegatedInjectionValueParamProvider.descriptorCache
We do not want to create a new descriptor instance for every and each method invocation.
|
private java.util.function.Function<Binding,ForeignDescriptor> |
DelegatedInjectionValueParamProvider.foreignDescriptorFactory |
Modifier and Type | Method and Description |
---|---|
private ForeignDescriptor |
DelegatedInjectionValueParamProvider.createDescriptor(java.lang.Class<?> clazz)
Method is able to create form incoming class and
jersey descriptor a ForeignDescriptor which is
provided by underlying DI provider. |
Constructor and Description |
---|
DelegatedInjectionValueParamProvider(LazyValue<ContextInjectionResolver> resolver,
java.util.function.Function<Binding,ForeignDescriptor> foreignDescriptorFactory)
Injection constructor.
|