Class ControllerFactory

java.lang.Object
org.javalite.activeweb.ControllerFactory

public class ControllerFactory extends Object
Author:
Igor Polevoy
  • Method Details

    • createControllerInstance

      protected static AppController createControllerInstance(String controllerClassName) throws ClassLoadException
      Throws:
      ClassLoadException
    • getControllerClassName

      public static String getControllerClassName(String controllerPath)
      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.