Interface MethodReturnManufacturerContext<T>


  • public interface MethodReturnManufacturerContext<T>
    Context for the MethodReturnManufacturer.
    Author:
    Daniel Sagenschneider
    • Method Detail

      • getReturnClass

        java.lang.Class<?> getReturnClass()
        Obtains the Class of the Method return.
        Returns:
        Class of the Method return.
      • setTranslatedReturnClass

        void setTranslatedReturnClass​(java.lang.Class<? super T> translatedReturnClass)

        Overrides the return Class to the translated return Class.

        Should this not be invoked, then the default Method return Class is used.

        Parameters:
        translatedReturnClass - Translated return Class.
      • getMethodAnnotations

        java.lang.annotation.Annotation[] getMethodAnnotations()
        Obtains the Annotation instances for the Method.
        Returns:
        Annotation instances for the Method.
      • getMethod

        java.lang.reflect.Method getMethod()

        Obtains the Method.

        Due to type erasure, the type information on the return Class may be lost. This allows more information to be derived about the return type.

        Returns:
        Method.