Module jakarta.mvc

Interface BeforeProcessViewEvent

All Superinterfaces:
MvcEvent

public interface BeforeProcessViewEvent extends MvcEvent

Event fired after a view engine has been selected but before its ViewEngine.processView(jakarta.mvc.engine.ViewEngineContext) method is called. Must be fired after ControllerRedirectEvent, or if that event is not fired, after AfterControllerEvent.

For example:

    public class EventObserver {
         public void beforeProcessView(@Observes BeforeProcessViewEvent e) {
            ...
        }
    }
Since:
1.0
See Also:
  • Observes
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends ViewEngine>
    Returns the ViewEngine selected by the implementation.
    Returns the view being processed.
  • Method Details

    • getView

      String getView()
      Returns the view being processed.
      Returns:
      the view.
    • getEngine

      Class<? extends ViewEngine> getEngine()
      Returns the ViewEngine selected by the implementation.
      Returns:
      the view engine selected.