| |
|
| com.jcorporate.expresso.core.controller.ControllerFactory
All known Subclasses: com.jcorporate.expresso.core.controller.DefaultControllerFactory, com.jcorporate.expresso.core.controller.ExpressoActionServlet,
ControllerFactory | public interface ControllerFactory (Code) | | 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 | |
public Controller | getController(String className) Dumb construction method.... | public Controller | getController(String module, String className) Dumb construction method.... | public 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.
Parameters: request - The ControllerRequest that has all the parameters weneed 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 tofurther complicate the idea of instantiating an actioncontroller. |
getController | public Controller getController(String className) throws ControllerException(Code) | | Dumb construction method.... just tries to create the controller. This
may have the limitation if there's more that one ActionServlet running
around that the object cache gets sent to the wrong ActionServlet resulting
in extra object contructions.
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.
Parameters: className - The className to instantiate a constructed controller throws: ControllerException - if there's an error instantiating thecontroller |
getController | public Controller getController(String module, String className) throws ControllerException(Code) | | Dumb construction method.... just tries to create the controller. This
may have the limitation if there's more that one ActionServlet running
around that the object cache gets sent to the wrong ActionServlet resulting
in extra object contructions.
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 the
module parameter
Parameters: className - The className to instantiate Parameters: module - The module to instantiate a constructed controller throws: ControllerException - if there's an error instantiating thecontroller |
getController | public Controller getController(ControllerRequest request) throws ControllerException(Code) | | 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.
Parameters: request - The ControllerRequest that has all the parameters weneed 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 tofurther complicate the idea of instantiating an actioncontroller. It is assume that this method retrieve a controllerspecifically from the named module. If such an implementationaims to support modules. Since the controller factory could retrievean HttpServletRequest from theControllerRequest and then find the appropriatemodule name, therefore no extra parameter was required for this method. instantiated controller throws: ControllerException - if there's an error instantiating thecontroller |
|
|
|