SEAF framework Run Time

SEAF handles a request from the screen as follows.

 SEAF framework Run Time
Fig. SEAF framework Run Time

1. The request JSP calls the server, this can either be by invoking an action on an HTML form of the request JSP, or by requesting a particular response JSP by HTML link – optionally with some parameters passed in.

2. The seaf.controller.ControllerSevlet class is invoked. This class extends the javax.sevlet.http.HttpServlet. It handles the HTTP request by delegating it to a newly created seaf.controller.processor.RequestProcessor.

3. The RequestProcessor contains the main logic for processing the requests, it:

4. The seaf.controller.Dispatcher dispatches the request to a specified view object by invoking the specified action on it. For each view object specified in SLIS configuration file, SEAF generates a class in package seaf.generated.view that provides implementation for the view object. For each action defined on the view object, the implementation class defines an appropriate method.

5. The view object implementation class invokes the appropriate method on the Session EJB. The Session EJBs and their methods are generated by SEAF in 1:1 relation with the view object implementation classes and their methods. The view object implementation class serves as a wrapper for invoking the Session EJB.

6. The Session EJB calls the corresponding method on the corresponding model class. The model classes and their methods are in 1:1 relation with the Session EJBs and their methods.
More information on the model classes...

7. Each invocation of the model via the Dispatcher and all the downstream classes produces an instance of seaf.controller.ProcessingContext. The RequestProcessor creates a seaf.view.View object for each view on the response JSP passing it the corresponding ProcessingContext returned from the model.

8. The seaf.controller.ControllerSevlet forwards the HTTP request to the response JSP that displays the resulting page to the user.

9. The response JSP uses the View object to facilitate display of dynamic data.

Back to SEAF home page…