|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.orchestra.viewController.AbstractViewControllerManager
public abstract class AbstractViewControllerManager
A partial implementation of the ViewControllerManager interface which allows subclasses to just implement two simple abstract methods in order to provide a fully functional ViewControllerManager implementation.
This implementation splits responsibility for invoking view lifecycle events into three parts:
| Field Summary |
|---|
| Fields inherited from interface org.apache.myfaces.orchestra.viewController.ViewControllerManager |
|---|
VIEW_CONTROLLER_MANAGER_NAME |
| Constructor Summary | |
|---|---|
AbstractViewControllerManager()
|
|
| Method Summary | |
|---|---|
void |
assertConversationState(java.lang.String viewId)
Check whether any conversations required for the specified view currently exist. |
void |
executeInitView(java.lang.String viewId)
This method is guaranteed to be called before any other lifecycle method (ie any of the other execute* methods on this interface. |
void |
executePreProcess(java.lang.String viewId)
This method is called at most once per request for each view. |
void |
executePreRenderView(java.lang.String viewId)
This method is called just before a view is required to render its representation back to the user. |
java.lang.Object |
getViewController(java.lang.String viewId)
|
protected abstract ViewControllerExecutor |
getViewControllerExecutor()
|
java.lang.String |
getViewControllerName(java.lang.String viewId)
|
protected abstract ViewControllerNameMapper |
getViewControllerNameMapper()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractViewControllerManager()
| Method Detail |
|---|
protected abstract ViewControllerNameMapper getViewControllerNameMapper()
protected abstract ViewControllerExecutor getViewControllerExecutor()
public java.lang.String getViewControllerName(java.lang.String viewId)
getViewControllerName in interface ViewControllerManagerpublic java.lang.Object getViewController(java.lang.String viewId)
getViewController in interface ViewControllerManagerpublic void assertConversationState(java.lang.String viewId)
ViewControllerManagerTODO: Consider renaming this method. It is very Orchestra-specific, although this ViewController framework is supposed to be generic. In fact this method is really just a "validate view" hook, and one of the validations that can be hooked in here is a conversation-check.
assertConversationState in interface ViewControllerManagerpublic void executeInitView(java.lang.String viewId)
ViewControllerManagerFor component-based frameworks, the component tree may not yet exist.
executeInitView in interface ViewControllerManagerpublic void executePreProcess(java.lang.String viewId)
ViewControllerManagerFor component-based frameworks, this method gets called after all components have transferred their state into associated backing beans. If validation errors have occurred within the view, then this method is not invoked.
executePreProcess in interface ViewControllerManagerpublic void executePreRenderView(java.lang.String viewId)
ViewControllerManagerIf a view X handles a "postback" event, and then navigates to a different view Y then this callback does not occur for the controller bean for view X, but does get invoked for the controller bean for view Y.
For component-based frameworks, the component tree may not yet exist at the time this method is invoked.
executePreRenderView in interface ViewControllerManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||