Class PropertyInjectorImpl

    • Field Detail

      • fieldMap

        protected java.util.HashMap<java.lang.reflect.Field,​ValueInjector> fieldMap
      • setterhashes

        protected java.util.HashMap<java.lang.Long,​java.lang.reflect.Method> setterhashes
      • clazz

        protected java.lang.Class<?> clazz
    • Constructor Detail

      • PropertyInjectorImpl

        public PropertyInjectorImpl​(java.lang.Class<?> clazz,
                                    ResteasyProviderFactory factory)
    • Method Detail

      • getParameterExtractor

        private ValueInjector getParameterExtractor​(java.lang.Class<?> clazz,
                                                    ResteasyProviderFactory factory,
                                                    java.lang.reflect.AccessibleObject accessibleObject,
                                                    java.lang.annotation.Annotation[] annotations,
                                                    java.lang.Class<?> type,
                                                    java.lang.reflect.Type genericType)
      • inject

        public void inject​(HttpRequest request,
                           HttpResponse response,
                           java.lang.Object target)
                    throws Failure
        Description copied from interface: PropertyInjector
        Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used inside the scope of an HTTP request.
        Specified by:
        inject in interface PropertyInjector
        Throws:
        Failure
      • inject

        public void inject​(java.lang.Object target)
        Description copied from interface: PropertyInjector
        Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used outside the scope of an HTTP request.
        Specified by:
        inject in interface PropertyInjector
      • getDeclaredFields

        private java.lang.reflect.Field[] getDeclaredFields​(java.lang.Class<?> clazz)
      • getDeclaredMethods

        private java.lang.reflect.Method[] getDeclaredMethods​(java.lang.Class<?> clazz)
      • setAccessible

        private void setAccessible​(java.lang.reflect.AccessibleObject member)