org.apache.myfaces.orchestra.viewController
Class CompositeViewControllerExecutor

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

public class CompositeViewControllerExecutor
extends Object
implements ViewControllerExecutor

Each executor configured with the constructor will be asked to execute the requested method on the bean. The search will end if the executor returns "true".

As an example, this can be configured to first try an executor that checks whether the bean implements a specific interface, then try one that uses reflection to find magic method-names, then try one that looks for annotations.


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

Constructor Detail

CompositeViewControllerExecutor

public CompositeViewControllerExecutor(ViewControllerExecutor[] viewControllerExecutors)
Method Detail

invokeInitView

public boolean invokeInitView(String beanName,
                              Object bean)
Specified by:
invokeInitView in interface ViewControllerExecutor

invokePreRenderView

public boolean invokePreRenderView(String beanName,
                                   Object bean)
Specified by:
invokePreRenderView in interface ViewControllerExecutor

invokePreProcess

public boolean invokePreProcess(String beanName,
                                Object bean)
Specified by:
invokePreProcess in interface ViewControllerExecutor


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