org.apache.myfaces.orchestra.viewController
Class InterfaceViewControllerExecutor

java.lang.Object
  extended by org.apache.myfaces.orchestra.viewController.AbstractViewControllerExecutor
      extended by org.apache.myfaces.orchestra.viewController.InterfaceViewControllerExecutor
All Implemented Interfaces:
ViewControllerExecutor

public class InterfaceViewControllerExecutor
extends AbstractViewControllerExecutor

Invokes ViewController events using the ViewController interface.

This requires that beans implement the ViewController interface in order to receive view lifecycle events.

Other implementations are possible that do not require a bean to implement a specific interface; see ReflectiveViewControllerExecutor for one example.

Note that each method here returns false if the target bean does not implement the ViewController interface; this allows this executor to be "chained" with others.


Constructor Summary
InterfaceViewControllerExecutor()
           
 
Method Summary
 boolean invokeInitView(java.lang.String beanName, java.lang.Object bean)
           
 boolean invokePreProcess(java.lang.String beanName, java.lang.Object bean)
           
 boolean invokePreRenderView(java.lang.String beanName, java.lang.Object bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceViewControllerExecutor

public InterfaceViewControllerExecutor()
Method Detail

invokeInitView

public boolean invokeInitView(java.lang.String beanName,
                              java.lang.Object bean)
Specified by:
invokeInitView in interface ViewControllerExecutor
Overrides:
invokeInitView in class AbstractViewControllerExecutor

invokePreRenderView

public boolean invokePreRenderView(java.lang.String beanName,
                                   java.lang.Object bean)
Specified by:
invokePreRenderView in interface ViewControllerExecutor
Overrides:
invokePreRenderView in class AbstractViewControllerExecutor

invokePreProcess

public boolean invokePreProcess(java.lang.String beanName,
                                java.lang.Object bean)
Specified by:
invokePreProcess in interface ViewControllerExecutor
Overrides:
invokePreProcess in class AbstractViewControllerExecutor


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.