Class ModuloControllerManager
java.lang.Object
com.chillycheesy.modulo.utils.Manager<ModuloController>
com.chillycheesy.modulo.controllers.ModuloControllerManager
The controller manager.
It manages the controllers and the controller chain.
-
Field Summary
Fields inherited from class com.chillycheesy.modulo.utils.Manager
managedItems
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Apply the controller chain.boolean
buildAndRegisterController(ModuloControllerFactory factory, Module module, Object... controllers)
The controller chain.boolean
buildAndRegisterController(Module module, Object... controllers)
Apply the controller chain.Methods inherited from class com.chillycheesy.modulo.utils.Manager
getAllItems, getItemByModule, getModuleByItem, registerItem, removeAllItems, removeItem
-
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
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 ExceptionApply the controller chain.- Parameters:
request
- The http request.response
- The http response.- Throws:
Exception
- If an error occurs.
-