Class ContextInjectionResolverImpl

java.lang.Object
org.glassfish.jersey.inject.hk2.ContextInjectionResolverImpl
All Implemented Interfaces:
org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>, org.glassfish.jersey.internal.inject.ContextInjectionResolver, org.glassfish.jersey.internal.inject.InjectionResolver<javax.ws.rs.core.Context>

@Singleton public class ContextInjectionResolverImpl extends Object implements org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>, org.glassfish.jersey.internal.inject.ContextInjectionResolver
Injection resolver for @Context injection annotation.
Author:
Marek Potociar (marek.potociar at oracle.com), Jakub Podlesak (jakub.podlesak at oracle.com)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Context injection resolver binder.
  • Field Summary

    Fields inherited from interface org.glassfish.hk2.api.InjectionResolver

    SYSTEM_RESOLVER_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<javax.ws.rs.core.Context>
    This method returns the annotation for what the injection resolver is implemented.
    boolean
    This method should return true if the annotation that indicates that this is an injection point can appear in the parameter list of a constructor.
    boolean
    This 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(org.glassfish.hk2.api.Injectee injectee, org.glassfish.hk2.api.ServiceHandle<?> root)
     
    resolve(org.glassfish.jersey.internal.inject.Injectee injectee)
    Jersey Injection Resolver method that just populate HK2 injectee object and delegates the processing to HK2 Injection Resolver.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContextInjectionResolverImpl

      public ContextInjectionResolverImpl()
  • Method Details

    • resolve

      public Object resolve(org.glassfish.hk2.api.Injectee injectee, org.glassfish.hk2.api.ServiceHandle<?> root)
      Specified by:
      resolve in interface org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>
    • resolve

      public Object resolve(org.glassfish.jersey.internal.inject.Injectee injectee)
      Jersey Injection Resolver method that just populate HK2 injectee object and delegates the processing to HK2 Injection Resolver.
      Specified by:
      resolve in interface org.glassfish.jersey.internal.inject.InjectionResolver<javax.ws.rs.core.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: org.glassfish.jersey.internal.inject.InjectionResolver
      This 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:
      isConstructorParameterIndicator in interface org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>
      Specified by:
      isConstructorParameterIndicator in interface org.glassfish.jersey.internal.inject.InjectionResolver<javax.ws.rs.core.Context>
      Returns:
      true if the injection annotation can appear in the parameter list of a constructor.
    • isMethodParameterIndicator

      public boolean isMethodParameterIndicator()
      Description copied from interface: org.glassfish.jersey.internal.inject.InjectionResolver
      This 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:
      isMethodParameterIndicator in interface org.glassfish.hk2.api.InjectionResolver<javax.ws.rs.core.Context>
      Specified by:
      isMethodParameterIndicator in interface org.glassfish.jersey.internal.inject.InjectionResolver<javax.ws.rs.core.Context>
      Returns:
      true if the injection annotation can appear in the parameter list of a method.
    • getAnnotation

      public Class<javax.ws.rs.core.Context> getAnnotation()
      Description copied from interface: org.glassfish.jersey.internal.inject.InjectionResolver
      This method returns the annotation for what the injection resolver is implemented.
      Specified by:
      getAnnotation in interface org.glassfish.jersey.internal.inject.InjectionResolver<javax.ws.rs.core.Context>
      Returns:
      handled annotation by injection resolver.