@Singleton
public class ContextInjectionResolver
extends java.lang.Object
implements org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>
@Context
injection annotation.Modifier and Type | Class and Description |
---|---|
static class |
ContextInjectionResolver.Binder
Context injection resolver HK2 binder.
|
private static class |
ContextInjectionResolver.DescriptorOverridingInjectee |
private static class |
ContextInjectionResolver.RequiredTypeOverridingInjectee |
Modifier and Type | Field and Description |
---|---|
private org.glassfish.hk2.utilities.cache.Cache<org.glassfish.hk2.api.Injectee,org.glassfish.hk2.api.ActiveDescriptor<?>> |
descriptorCache |
(package private) LazyValue<java.util.Set<java.lang.Class<?>>> |
foreignRequestScopedComponents |
private org.glassfish.hk2.utilities.cache.Cache<org.glassfish.hk2.api.Injectee,org.glassfish.hk2.api.Injectee> |
foreignRequestScopedInjecteeCache |
private org.glassfish.hk2.api.ServiceLocator |
serviceLocator |
Constructor and Description |
---|
ContextInjectionResolver() |
Modifier and Type | Method and Description |
---|---|
private org.glassfish.hk2.api.Factory |
asFactory(org.glassfish.hk2.api.ServiceHandle handle) |
private org.glassfish.hk2.api.Injectee |
getFactoryInjectee(org.glassfish.hk2.api.Injectee injectee,
java.lang.reflect.Type requiredType) |
private java.util.Set<java.lang.Class<?>> |
getForeignRequestScopedComponents() |
boolean |
isConstructorParameterIndicator() |
boolean |
isMethodParameterIndicator() |
java.lang.Object |
resolve(org.glassfish.hk2.api.Injectee injectee,
org.glassfish.hk2.api.ServiceHandle<?> root) |
@Inject private org.glassfish.hk2.api.ServiceLocator serviceLocator
private final org.glassfish.hk2.utilities.cache.Cache<org.glassfish.hk2.api.Injectee,org.glassfish.hk2.api.ActiveDescriptor<?>> descriptorCache
private final org.glassfish.hk2.utilities.cache.Cache<org.glassfish.hk2.api.Injectee,org.glassfish.hk2.api.Injectee> foreignRequestScopedInjecteeCache
LazyValue<java.util.Set<java.lang.Class<?>>> foreignRequestScopedComponents
public java.lang.Object resolve(org.glassfish.hk2.api.Injectee injectee, org.glassfish.hk2.api.ServiceHandle<?> root)
resolve
in interface org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>
private org.glassfish.hk2.api.Factory asFactory(org.glassfish.hk2.api.ServiceHandle handle)
private org.glassfish.hk2.api.Injectee getFactoryInjectee(org.glassfish.hk2.api.Injectee injectee, java.lang.reflect.Type requiredType)
public boolean isConstructorParameterIndicator()
isConstructorParameterIndicator
in interface org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>
public boolean isMethodParameterIndicator()
isMethodParameterIndicator
in interface org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>
private java.util.Set<java.lang.Class<?>> getForeignRequestScopedComponents()