|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Abstract interface for creating a controller. Some situations need to cache the resulting controller. Some situations just need to create it and run. Some need to merge with Struts. This is the interface that ties it all in.
| Method Summary | |
Controller |
getController(ControllerRequest request)
This method is similar to getController(className) except that it may try to route the construction call to the appropriate servlet constructor IF the request is a HttpServletControllerRequest AND the implementation chooses to accept this mission. |
Controller |
getController(String className)
Dumb construction method.... just tries to create the controller. |
Controller |
getController(String module,
String className)
Dumb construction method.... just tries to create the controller. |
| Method Detail |
public Controller getController(String className)
throws ControllerException
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 from the default root module.
className - The className to instantiate
ControllerException - if there's an error instantiating the
controller
public Controller getController(String module,
String className)
throws ControllerException
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. If not it can legally ignore themodule parameter
- Parameters:
className - The className to instantiatemodule - The module to instantiate
- Returns:
- a constructed controller
- Throws:
ControllerException - if there's an error instantiating the
controller
public Controller getController(ControllerRequest request)
throws ControllerException
request - 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 | ||||||||||