Package org.glassfish.jersey.inject.hk2
Class ContextInjectionResolverImpl
java.lang.Object
org.glassfish.jersey.inject.hk2.ContextInjectionResolverImpl
- All Implemented Interfaces:
InjectionResolver<Context>,ContextInjectionResolver,InjectionResolver<Context>
@Singleton
public class ContextInjectionResolverImpl
extends Object
implements InjectionResolver<Context>, ContextInjectionResolver
Injection resolver for
@Context injection annotation.- Author:
- Marek Potociar, Jakub Podlesak
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContext injection resolver binder. -
Field Summary
Fields inherited from interface org.glassfish.hk2.api.InjectionResolver
SYSTEM_RESOLVER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the annotation for what the injection resolver is implemented.booleanThis method should return true if the annotation that indicates that this is an injection point can appear in the parameter list of a constructor.booleanThis method should return true if the annotation that indicates that this is an injection point can appear in the parameter list of a method.resolve(Injectee injectee, ServiceHandle<?> root) Jersey Injection Resolver method that just populate HK2 injectee object and delegates the processing to HK2 Injection Resolver.
-
Constructor Details
-
ContextInjectionResolverImpl
public ContextInjectionResolverImpl()
-
-
Method Details
-
resolve
- Specified by:
resolvein interfaceInjectionResolver<Context>
-
resolve
Jersey Injection Resolver method that just populate HK2 injectee object and delegates the processing to HK2 Injection Resolver.- Specified by:
resolvein interfaceInjectionResolver<Context>- Parameters:
injectee- The injection point this value is being injected into- Returns:
- result of the injection processing.
-
isConstructorParameterIndicator
public boolean isConstructorParameterIndicator()Description copied from interface:InjectionResolverThis method should return true if the annotation that indicates that this is an injection point can appear in the parameter list of a constructor.- Specified by:
isConstructorParameterIndicatorin interfaceInjectionResolver<Context>- Specified by:
isConstructorParameterIndicatorin interfaceInjectionResolver<Context>- Returns:
- true if the injection annotation can appear in the parameter list of a constructor.
-
isMethodParameterIndicator
public boolean isMethodParameterIndicator()Description copied from interface:InjectionResolverThis method should return true if the annotation that indicates that this is an injection point can appear in the parameter list of a method.- Specified by:
isMethodParameterIndicatorin interfaceInjectionResolver<Context>- Specified by:
isMethodParameterIndicatorin interfaceInjectionResolver<Context>- Returns:
- true if the injection annotation can appear in the parameter list of a method.
-
getAnnotation
Description copied from interface:InjectionResolverThis method returns the annotation for what the injection resolver is implemented.- Specified by:
getAnnotationin interfaceInjectionResolver<Context>- Returns:
- handled annotation by injection resolver.
-