it.eng.spago.dispatching.module
Class DefaultPage

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.module.AbstractPage
          extended by it.eng.spago.dispatching.module.DefaultPage
All Implemented Interfaces:
PageIFace, RequestContextIFace, ServiceIFace, InitializerIFace, java.io.Serializable
Direct Known Subclasses:
ConfigurablePage

public class DefaultPage
extends AbstractPage

Author:
See Also:
Serialized Form

Constructor Summary
DefaultPage()
           
 
Method Summary
 java.util.List getTargetRequests(java.lang.String sourceName)
          Build the list of target modules to call, starting from the module sourceName.
 void init(SourceBean config)
           
protected  java.util.HashMap initModules()
           
protected  void nextStep(java.util.HashMap modulesInstances, java.lang.String sourceName)
           
protected  void releaseModules(java.util.HashMap modulesInstances)
           
 void service(SourceBean serviceRequest, SourceBean serviceResponse)
          Questo metodo viene invocato dall'application framework per eseguire la logica di business implemetata dell'oggetto stesso.
 
Methods inherited from class it.eng.spago.dispatching.module.AbstractPage
getConfig
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse, setRequestContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPage

public DefaultPage()
Method Detail

init

public void init(SourceBean config)
Specified by:
init in interface InitializerIFace
Overrides:
init in class AbstractPage

initModules

protected java.util.HashMap initModules()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

releaseModules

protected void releaseModules(java.util.HashMap modulesInstances)

service

public void service(SourceBean serviceRequest,
                    SourceBean serviceResponse)
             throws java.lang.Exception
Description copied from interface: ServiceIFace
Questo metodo viene invocato dall'application framework per eseguire la logica di business implemetata dell'oggetto stesso.

Parameters:
serviceRequest - il SourceBean contenente i parametri della richiesta.
serviceResponse - il SourceBean che dovrà essere popolato con gli oggetti legati alla risposta.
Throws:
java.lang.Exception

getTargetRequests

public java.util.List getTargetRequests(java.lang.String sourceName)
Build the list of target modules to call, starting from the module sourceName. The result is a list containing the requests (SourceBean) to use to call the target modules. In each request there is an attribute that contains the target module name. The method should check all conditions of the dependencies involved.

Parameters:
sourceName - The name of the starting module.
Returns:
List of requests used to call the target modules.

nextStep

protected void nextStep(java.util.HashMap modulesInstances,
                        java.lang.String sourceName)
                 throws java.lang.Exception
Throws:
java.lang.Exception