Class ControllerUtils.ViewFactory

java.lang.Object
uk.ac.manchester.spinnaker.alloc.web.ControllerUtils.ViewFactory
Enclosing class:
ControllerUtils

@Immutable
public static final class ControllerUtils.ViewFactory
extends Object
Creates a ModelAndView on demand.
Author:
Donal Fellows
  • Constructor Details

  • Method Details

    • view

      public ModelAndView view()
      Make an instance.
      Returns:
      The model-and-view, ready for decorating with the model.
    • view

      public ModelAndView view​(ModelMap model)
      Make an instance.
      Parameters:
      model - The model we want to start with.
      Returns:
      The model-and-view, ready for decorating with the model.
    • view

      public ModelAndView view​(String key, Object value)
      Make an instance.
      Parameters:
      key - Name of item to initially insert in the model.
      value - Value of item to initially insert in the model.
      Returns:
      The model-and-view, ready for decorating with the model.