Package org.javalite.activeweb
Class ControllerFactory
java.lang.Object
org.javalite.activeweb.ControllerFactory
- Author:
- Igor Polevoy
-
Method Summary
Modifier and TypeMethodDescriptionprotected static AppController
createControllerInstance(String controllerClassName)
static String
getControllerClassName(String controllerPath)
Expected paths: /controller, /package/controller, /package/package2/controller, /package/package2/package3/controller, etc.
-
Method Details
-
createControllerInstance
protected static AppController createControllerInstance(String controllerClassName) throws ClassLoadException- Throws:
ClassLoadException
-
getControllerClassName
Expected paths: /controller, /package/controller, /package/package2/controller, /package/package2/package3/controller, etc. For backwards compatibility, the controller name alone without the preceding slash is allowed, but limits these controllers to only default package:app.controllers
- Parameters:
controllerPath
- controller path.- Returns:
- name of controller class.
-