Class ContextInjectionResolverImpl

java.lang.Object
org.glassfish.jersey.inject.cdi.se.injector.ContextInjectionResolverImpl
All Implemented Interfaces:
org.glassfish.jersey.internal.inject.ContextInjectionResolver, org.glassfish.jersey.internal.inject.InjectionResolver<Context>

public class ContextInjectionResolverImpl extends Object implements org.glassfish.jersey.internal.inject.InjectionResolver<Context>, org.glassfish.jersey.internal.inject.ContextInjectionResolver
Injection resolver for @Context injection annotation.
Author:
Petr Bouda
  • Nested Class Summary

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

    Modifier and Type
    Method
    Description
    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.jersey.internal.inject.Injectee injectee)
    This method will return the object that should be injected into the given injection point.

    Methods inherited from class java.lang.Object

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

    • resolve

      public Object resolve(org.glassfish.jersey.internal.inject.Injectee injectee)
      Description copied from interface: org.glassfish.jersey.internal.inject.InjectionResolver
      This method will return the object that should be injected into the given injection point. It is the responsibility of the implementation to ensure that the object returned can be safely injected into the injection point.

      This method should not do the injection themselves.

      Specified by:
      resolve in interface org.glassfish.jersey.internal.inject.InjectionResolver<Context>
      Parameters:
      injectee - The injection point this value is being injected into
      Returns:
      A possibly null value to be injected into the given injection point
    • 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.jersey.internal.inject.InjectionResolver<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.jersey.internal.inject.InjectionResolver<Context>
      Returns:
      true if the injection annotation can appear in the parameter list of a method.
    • getAnnotation

      public Class<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<Context>
      Returns:
      handled annotation by injection resolver.