org.apache.myfaces.orchestra.viewController
Interface ViewControllerManager

All Known Implementing Classes:
AbstractViewControllerManager, DefaultViewControllerManager

public interface ViewControllerManager

Route per-view lifecycle events to the correct user methods.

The ViewControllerPhaseListener retrieves a concrete implementation of this interface then invokes it at various processing phases. The concrete implementation is responsible for determining which methods on which objects (backing beans) should be invoked.

Orchestra provides a couple of different implementations; see DefaultViewControllerManager and ReflectiveViewControllerExecutor.

Defining your own ViewControllerManager

If you would like to use your own naming scheme or executor just implement your own ViewControllerManager or derive from DefaultViewControllerManager (the recommended way) and overload AbstractViewControllerManager.getViewControllerNameMapper() or AbstractViewControllerManager.getViewControllerExecutor() }.

To activate your manager just configure it as managed bean in your faces-config.xml or your spring configuration, preferably in application scope or as singleton.

The managed-bean-name has to be "org.apache.myfaces.orchestra.viewController.ViewControllerManager" (see constant VIEW_CONTROLLER_MANAGER_NAME)


Field Summary
static java.lang.String VIEW_CONTROLLER_MANAGER_NAME
           
 
Method Summary
 void assertConversationState(java.lang.String viewId)
           
 void executeInitView(java.lang.String viewId)
           
 void executePreProcess(java.lang.String viewId)
           
 void executePreRenderView(java.lang.String viewId)
           
 java.lang.Object getViewController(java.lang.String viewId)
           
 java.lang.String getViewControllerName(java.lang.String viewId)
           
 

Field Detail

VIEW_CONTROLLER_MANAGER_NAME

static final java.lang.String VIEW_CONTROLLER_MANAGER_NAME
Method Detail

getViewController

java.lang.Object getViewController(java.lang.String viewId)

getViewControllerName

java.lang.String getViewControllerName(java.lang.String viewId)

assertConversationState

void assertConversationState(java.lang.String viewId)

executeInitView

void executeInitView(java.lang.String viewId)

executePreProcess

void executePreProcess(java.lang.String viewId)

executePreRenderView

void executePreRenderView(java.lang.String viewId)


Copyright 2007 The Apache Software Foundation. All Rights Reserved.