Class ViewInvoker

    • Constructor Detail

      • ViewInvoker

        public ViewInvoker​(Object bean,
                           Method method,
                           org.springframework.core.convert.ConversionService conversionService)
        Creates a new ViewInvoker.
        Parameters:
        bean - target Spring bean to be invoked
        method - target method to be invoked
        conversionService - ConversionService to be used for parameter conversion
    • Method Detail

      • invoke

        public String invoke​(ViewContext context)
                      throws ViewException
        Invokes the view handler.
        Parameters:
        context - ViewContext containing all necessary data for invoking the view
        Returns:
        String returned by the view handler. Usually this is a reference to a JSP that is used for rendering the result. If null, the view handler took care for sending a response itself.
        Throws:
        ViewException