Class ModuloControllerManager

java.lang.Object
com.chillycheesy.modulo.utils.Manager<ModuloController>
com.chillycheesy.modulo.controllers.ModuloControllerManager

public class ModuloControllerManager extends Manager<ModuloController>
The controller manager. It manages the controllers and the controller chain.
  • Constructor Details

    • ModuloControllerManager

      public ModuloControllerManager()
  • Method Details

    • buildAndRegisterController

      public boolean buildAndRegisterController(ModuloControllerFactory factory, Module module, Object... controllers)
      The controller chain.
      Parameters:
      factory - The controller factory.
      module - The module.
      controllers - The controllers.
      Returns:
      True if the controller was built.
    • buildAndRegisterController

      public boolean buildAndRegisterController(Module module, Object... controllers)
      Apply the controller chain.
      Parameters:
      module - The module.
      controllers - The controllers.
      Returns:
      True if the controller chain was applied.
    • apply

      public void apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Apply the controller chain.
      Parameters:
      request - The http request.
      response - The http response.
      Throws:
      Exception - If an error occurs.