org.apache.myfaces.orchestra.viewController
Class ReflectiveViewControllerExecutor

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

public class ReflectiveViewControllerExecutor
extends AbstractViewControllerExecutor

Invokes ViewController events using reflection.

If the target bean has a method with any of the following signatures then it receives the appropriate callback:

Note that each method here returns false if the target bean does not have a method with an appropriate signature; this allows this executor to be "chained" with others.


Constructor Summary
ReflectiveViewControllerExecutor()
           
 
Method Summary
 boolean invokeInitView(String beanName, Object bean)
           
protected  boolean invokeOnViewController(Object bean, String methodName)
          Helper method to find the method which should get invoked.
 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

ReflectiveViewControllerExecutor

public ReflectiveViewControllerExecutor()
Method Detail

invokeOnViewController

protected boolean invokeOnViewController(Object bean,
                                         String methodName)
Helper method to find the method which should get invoked.


invokeInitView

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

invokePreRenderView

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

invokePreProcess

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


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