Class AutowiredInjectResolver

java.lang.Object
org.glassfish.jersey.server.spring.AutowiredInjectResolver
All Implemented Interfaces:
org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>

@Singleton public class AutowiredInjectResolver extends Object implements org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>
HK2 injection resolver for Spring framework Autowired annotation injection.
Author:
Marko Asplund (marko.asplund at yahoo.com), Vetle Leinonen-Roeim (vetle at roeim.net)
  • Constructor Details

    • AutowiredInjectResolver

      public AutowiredInjectResolver(org.springframework.context.ApplicationContext ctx)
      Create a new instance.
      Parameters:
      ctx - Spring application context.
  • Method Details

    • resolve

      public Object resolve(org.glassfish.jersey.internal.inject.Injectee injectee)
      Specified by:
      resolve in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>
    • isConstructorParameterIndicator

      public boolean isConstructorParameterIndicator()
      Specified by:
      isConstructorParameterIndicator in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>
    • isMethodParameterIndicator

      public boolean isMethodParameterIndicator()
      Specified by:
      isMethodParameterIndicator in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>
    • getAnnotation

      public Class<org.springframework.beans.factory.annotation.Autowired> getAnnotation()
      Specified by:
      getAnnotation in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>