Package org.glassfish.jersey.inject.hk2
Class InjectionResolverWrapper<T extends java.lang.annotation.Annotation>
- java.lang.Object
-
- org.glassfish.jersey.inject.hk2.InjectionResolverWrapper<T>
-
- All Implemented Interfaces:
org.glassfish.hk2.api.InjectionResolver<T>
@Singleton public class InjectionResolverWrapper<T extends java.lang.annotation.Annotation> extends java.lang.Object implements org.glassfish.hk2.api.InjectionResolver<T>This class wraps the jersey classInjectionResolverto make HK2 version of this provided functionality. HK2InjectionResolvercan be then register inServiceLocatorand HK2 can handle the annotation which is register along with the interface.
-
-
Field Summary
Fields Modifier and Type Field Description private InjectionResolverjerseyResolver
-
Constructor Summary
Constructors Constructor Description InjectionResolverWrapper(InjectionResolver<T> jerseyResolver)C'tor accepts jersey-likeInjectionResolveron which the the processing is delegated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.glassfish.hk2.api.FactoryasFactory(java.lang.Object instance)booleanisConstructorParameterIndicator()booleanisMethodParameterIndicator()java.lang.Objectresolve(org.glassfish.hk2.api.Injectee injectee, org.glassfish.hk2.api.ServiceHandle root)
-
-
-
Field Detail
-
jerseyResolver
private final InjectionResolver jerseyResolver
-
-
Constructor Detail
-
InjectionResolverWrapper
InjectionResolverWrapper(InjectionResolver<T> jerseyResolver)
C'tor accepts jersey-likeInjectionResolveron which the the processing is delegated.- Parameters:
jerseyResolver- jersey injection resolver.
-
-
Method Detail
-
resolve
public java.lang.Object resolve(org.glassfish.hk2.api.Injectee injectee, org.glassfish.hk2.api.ServiceHandle root)- Specified by:
resolvein interfaceorg.glassfish.hk2.api.InjectionResolver<T extends java.lang.annotation.Annotation>
-
asFactory
private org.glassfish.hk2.api.Factory asFactory(java.lang.Object instance)
-
isConstructorParameterIndicator
public boolean isConstructorParameterIndicator()
- Specified by:
isConstructorParameterIndicatorin interfaceorg.glassfish.hk2.api.InjectionResolver<T extends java.lang.annotation.Annotation>
-
isMethodParameterIndicator
public boolean isMethodParameterIndicator()
- Specified by:
isMethodParameterIndicatorin interfaceorg.glassfish.hk2.api.InjectionResolver<T extends java.lang.annotation.Annotation>
-
-