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 classInjectionResolver
to make HK2 version of this provided functionality. HK2InjectionResolver
can be then register inServiceLocator
and HK2 can handle the annotation which is register along with the interface.
-
-
Field Summary
Fields Modifier and Type Field Description private InjectionResolver
jerseyResolver
-
Constructor Summary
Constructors Constructor Description InjectionResolverWrapper(InjectionResolver<T> jerseyResolver)
C'tor accepts jersey-likeInjectionResolver
on which the the processing is delegated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.glassfish.hk2.api.Factory
asFactory(java.lang.Object instance)
boolean
isConstructorParameterIndicator()
boolean
isMethodParameterIndicator()
java.lang.Object
resolve(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-likeInjectionResolver
on 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:
resolve
in 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:
isConstructorParameterIndicator
in interfaceorg.glassfish.hk2.api.InjectionResolver<T extends java.lang.annotation.Annotation>
-
isMethodParameterIndicator
public boolean isMethodParameterIndicator()
- Specified by:
isMethodParameterIndicator
in interfaceorg.glassfish.hk2.api.InjectionResolver<T extends java.lang.annotation.Annotation>
-
-