Class Introspection.Setter

    • Constructor Summary

      Constructors 
      Constructor Description
      Setter​(java.lang.Class implementationClass, java.lang.String resourceName, java.lang.reflect.Method method)  
    • Constructor Detail

      • Setter

        public Setter​(java.lang.Class implementationClass,
                      java.lang.String resourceName,
                      java.lang.reflect.Method method)
    • Method Detail

      • set

        public void set​(java.lang.Object instance,
                        java.lang.Object value)
        Reflection invoked by the underlying method to set the resource value.
        Parameters:
        instance - Instance to do reflection.
        value - Parameter value.
        Throws:
        java.lang.reflect.InvocationTargetException - Invocation target exception.
        java.lang.IllegalAccessException - Illegal access exception.
      • getParameterType

        public final java.lang.Class getParameterType()
        Return the parameter type of the setter method.
        Returns:
        Parameter type.
      • getParameterParameterizedType

        public final java.lang.reflect.ParameterizedType getParameterParameterizedType()
        Returns the parameterized type that corresponds with the parameter type.
        Returns:
        Parameterized parameter type.
      • getParameterKeyType

        public final java.lang.Class getParameterKeyType()
        If the parameter type is assignable to map class then this method return the key type of the parameter type.
        Returns:
        Key type.
      • getParameterCollectionType

        public final java.lang.Class getParameterCollectionType()
        If the parameter type is assignable to map class or collection class then this method return the collection type of the parameter type.
        Returns:
        Collection type.