Class InjectionResolverWrapper<T extends java.lang.annotation.Annotation>

  • 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 class InjectionResolver to make HK2 version of this provided functionality. HK2 InjectionResolver can be then register in ServiceLocator and HK2 can handle the annotation which is register along with the interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private InjectionResolver jerseyResolver  
      • Fields inherited from interface org.glassfish.hk2.api.InjectionResolver

        SYSTEM_RESOLVER_NAME
    • Constructor Detail

      • InjectionResolverWrapper

        InjectionResolverWrapper​(InjectionResolver<T> jerseyResolver)
        C'tor accepts jersey-like InjectionResolver 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 interface org.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 interface org.glassfish.hk2.api.InjectionResolver<T extends java.lang.annotation.Annotation>
      • isMethodParameterIndicator

        public boolean isMethodParameterIndicator()
        Specified by:
        isMethodParameterIndicator in interface org.glassfish.hk2.api.InjectionResolver<T extends java.lang.annotation.Annotation>