|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.controller.DefaultControllerFactory
This version of Controller Factory acts dumb. If the controller hasn't been create already, it creates it. It is often used for Command Line operations where we don't use the Struts Action Servlet
| Field Summary | |
protected org.apache.oro.util.CacheLRU |
controllerCache
Class Instantiation. |
| Constructor Summary | |
DefaultControllerFactory()
Do nothing constructor |
|
| Method Summary | |
Controller |
getController(ControllerRequest request)
Retrieve the Action controller that matches the class name The Struts 1.1 modules are ignored for this implementation. |
Controller |
getController(String className)
Retrieve the Action controller that matches the class name |
Controller |
getController(String moduleName,
String className)
Retrieve the Action controller that matches the class name The moduleName is ignored for this implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.oro.util.CacheLRU controllerCache
| Constructor Detail |
public DefaultControllerFactory()
| Method Detail |
public Controller getController(String className)
throws ControllerException
getController in interface ControllerFactoryclassName - The className to instantiate
ControllerException - if there's an error instantiating the
controller
public Controller getController(String moduleName,
String className)
throws ControllerException
moduleName is ignored for this implementation.
getController in interface ControllerFactoryclassName - The className to instantiatemoduleName - The module to instantiate
ControllerException - if there's an error instantiating the
controller
public Controller getController(ControllerRequest request)
throws ControllerException
getController in interface ControllerFactoryrequest - The ControllerRequest that has all the parameters we
need to construct the appropriate controller.
Additional notes by Peter Pilgrim Sun Feb 16 13:53:07 GMT 2003
Struts 1.1 introduces the concept of Modules to further complicate the idea of instantiating an action controller. It is assume that this method retrieve a controller specifically from the named module. If such an implementation aims to support modules. Since the controller factory could retrieve anHttpServletRequest from the
ControllerRequest and then find the appropriate
module name, therefore no extra parameter was required for this method.
ControllerException - if there's an error instantiating the
controller
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||