Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.7.0)

E10652-08

oracle.adf.controller.lifecycle
Interface Lifecycle

All Known Implementing Classes:
DataAction, DataForwardAction, PageLifecycle, StrutsJspLifecycle, StrutsPageLifecycle

Deprecated. Use equivalent classes in oracle.adf.controller.v2

public interface Lifecycle

The ADF Lifecycle provides support allowing a web page to interact with ADF Model data bindings. The lifecycle calls the correct binding container needed for a JSP or UIX page, updates values in the binding container's bindings if necessary, and prepares the data to be rendered. The binding container stores this data locally before rendering the page.

NOTE: Implementations of Lifecycle should be thread-safe and use the LifecycleContext object as the place to store any per-request state they may need.

Since:
9.0.5

Method Summary
 void buildEventList(LifecycleContext lcContext)
          Deprecated. Builds the list of events with their possible associated action binding from the request parameters.
 void findForward(LifecycleContext lcContext)
          Deprecated. Forwards the request or redirects the response to the next web page in the flow.
 java.lang.reflect.Method getEventMethod(LifecycleContext lcContext, java.lang.String name)
          Deprecated. Retrieve the Method class for an event name.
 void handleError(LifecycleContext lcContext, java.lang.Exception ex)
          Deprecated. Handles any exceptions that occurred during the Lifecycle processing.
 void handleLifecycle(LifecycleContext lcContext)
          Deprecated. Define all the phases of the lifecycle and the order they are executed.
 boolean hasErrors(LifecycleContext lcContext)
          Deprecated. Ask the context if any errors have been recorded during this lifecycle.
 void initializeMethodParameters(LifecycleContext lcContext, oracle.jbo.uicli.binding.JUCtrlActionBinding actionBinding)
          Deprecated. This method is invoked before any ControlBinding or custom method is being executed.
 void invokeCustomMethod(LifecycleContext lcContext)
          Deprecated. Invokes the custom method associated with the binding container.
 void prepareModel(LifecycleContext lcContext)
          Deprecated. Give the opportunity for the data model to prepare and initialize.
 void processComponentEvents(LifecycleContext lcContext)
          Deprecated. Handle any events in the action binding list previously built in processUpdateModel using the buildEventList method.
 void processUpdateModel(LifecycleContext lcContext)
          Deprecated. Update the data model with values submitted in the request.
 void refreshModel(LifecycleContext lcContext)
          Deprecated. Used to notify the model when updates are over with.
 void reportErrors(LifecycleContext lcContext)
          Deprecated. Report the error list to the view layer.
 boolean shouldAllowModelUpdate(LifecycleContext lcContext)
          Deprecated. Allows clients to determine whether the model should be updated.
 void validateModelUpdates(LifecycleContext lcContext)
          Deprecated. Forces model-level validation to occur.
 

Method Detail

handleLifecycle

void handleLifecycle(LifecycleContext lcContext)
                     throws java.lang.Exception
Deprecated. 
Define all the phases of the lifecycle and the order they are executed.

Parameters:
lcContext - the lifecycle context
Throws:
java.lang.Exception

buildEventList

void buildEventList(LifecycleContext lcContext)
Deprecated. 
Builds the list of events with their possible associated action binding from the request parameters.

Parameters:
lcContext - the lifecycle context

prepareModel

void prepareModel(LifecycleContext lcContext)
                  throws java.lang.Exception
Deprecated. 
Give the opportunity for the data model to prepare and initialize. This method will throw if the data model cannot be prepared.

Parameters:
lcContext - the lifecycle context
Throws:
java.lang.Exception

shouldAllowModelUpdate

boolean shouldAllowModelUpdate(LifecycleContext lcContext)
Deprecated. 
Allows clients to determine whether the model should be updated.

Parameters:
lcContext - the lifecycle context.
Returns:
true, if the model should be updated during this lifecycle

processUpdateModel

void processUpdateModel(LifecycleContext lcContext)
Deprecated. 
Update the data model with values submitted in the request.

Parameters:
lcContext - the lifecycle context

validateModelUpdates

void validateModelUpdates(LifecycleContext lcContext)
Deprecated. 
Forces model-level validation to occur.

Parameters:
lcContext - the lifecycle context

hasErrors

boolean hasErrors(LifecycleContext lcContext)
Deprecated. 
Ask the context if any errors have been recorded during this lifecycle.

Parameters:
lcContext - the lifecycle context
Returns:
true, if any validation errors have been stored in the LifecycleContext.

processComponentEvents

void processComponentEvents(LifecycleContext lcContext)
                            throws java.lang.Exception
Deprecated. 
Handle any events in the action binding list previously built in processUpdateModel using the buildEventList method.

Parameters:
lcContext - the lifecycle context
Throws:
java.lang.Exception

initializeMethodParameters

void initializeMethodParameters(LifecycleContext lcContext,
                                oracle.jbo.uicli.binding.JUCtrlActionBinding actionBinding)
Deprecated. 
This method is invoked before any ControlBinding or custom method is being executed. Overriding this method gives an opportunity to set the parameters.

Parameters:
lcContext - the lifecycle context
actionBinding - the action binding object to initialize

invokeCustomMethod

void invokeCustomMethod(LifecycleContext lcContext)
Deprecated. 
Invokes the custom method associated with the binding container.

Parameters:
lcContext - the lifecycle context

refreshModel

void refreshModel(LifecycleContext lcContext)
Deprecated. 
Used to notify the model when updates are over with.

Parameters:
lcContext - the lifecycle context

handleError

void handleError(LifecycleContext lcContext,
                 java.lang.Exception ex)
Deprecated. 
Handles any exceptions that occurred during the Lifecycle processing.

Parameters:
lcContext - the lifecycle context
ex - the exception to record

reportErrors

void reportErrors(LifecycleContext lcContext)
Deprecated. 
Report the error list to the view layer.

Parameters:
lcContext - the lifecycle context

findForward

void findForward(LifecycleContext lcContext)
                 throws java.lang.Exception
Deprecated. 
Forwards the request or redirects the response to the next web page in the flow.

Parameters:
lcContext - the lifecycle context
Throws:
java.lang.Exception

getEventMethod

java.lang.reflect.Method getEventMethod(LifecycleContext lcContext,
                                        java.lang.String name)
Deprecated. 
Retrieve the Method class for an event name.

Parameters:
lcContext - the lifecycle context
name - name of the event
Returns:
the Method object for this event if exist

Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.7.0)

E10652-08

Copyright © 1997, 2013, Oracle. All rights reserved.