Expresso 5-5-0

com.jcorporate.expresso.services.controller
Interface RegistrationFactory

All Known Implementing Classes:
Schema

public interface RegistrationFactory

Registration factory implements the two required method to deal with Login and registration. Normally Schema implements this interface since it's easy for a controller to get the schema associated with it.

Version:
$Revision: 1.2 $ on $Date: 2003/10/01 01:18:37 $
Author:
Michael Rimov

Method Summary
 Controller getLoginController()
          Retrieve the login controller to use with this registration factory.
 Controller getRegistrationController()
          Retrieve the registration controller.
 

Method Detail

getLoginController

public Controller getLoginController()
                              throws ControllerException
Retrieve the login controller to use with this registration factory. This function should never return null.

Returns:
a Struts action. Most likely an Expresso Controller. [Remember you can downcast the return value]
Throws:
ControllerException - if there is an error instantiating the controller
See Also:
SimpleLoginController

getRegistrationController

public Controller getRegistrationController()
                                     throws ControllerException
Retrieve the registration controller. Depending on the application, since Registration may not be a need, this function MAY return null, in which case all links to the Registration pages should be skipped

Returns:
a Struts Action for the RegistrationController. [Most often a subclass of SimpleRegistration]
Throws:
ControllerException - if there is an error instantiating the controller
See Also:
SimpleRegistration

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.