org.apache.myfaces.application
Class BackwardsCompatibleNavigationHandlerWrapper

java.lang.Object
  extended by javax.faces.application.NavigationHandler
      extended by javax.faces.application.ConfigurableNavigationHandler
          extended by org.apache.myfaces.application.BackwardsCompatibleNavigationHandlerWrapper

public class BackwardsCompatibleNavigationHandlerWrapper
extends ConfigurableNavigationHandler

This class is used as a double wrapper for NavigationHandler and ConfigurableNavigationHandler to be backwards compatible to the pre JSF 2.0 NavigationHandlers which are not ConfigurableNavigationHandlers (since JSF 2.0 the standard NavigationHandler implementation has to inherit from ConfigurableNavigationHandler). It just passes through handleNavigation() to the wrapped NavigationHandler and getNavigationCase() and getNavigationCases() to the wrapped ConfigurableNavigationHandler.

Version:
$Revision: 916247 $ $Date: 2010-02-25 06:00:37 -0500 (Thu, 25 Feb 2010) $
Author:
Jakob Korherr (latest modification by $Author: jakobk $)

Constructor Summary
BackwardsCompatibleNavigationHandlerWrapper(NavigationHandler wrapped, ConfigurableNavigationHandler doubleWrapped)
           
 
Method Summary
 NavigationCase getNavigationCase(FacesContext context, String fromAction, String outcome)
           
 Map<String,Set<NavigationCase>> getNavigationCases()
           
 void handleNavigation(FacesContext context, String fromAction, String outcome)
           
 
Methods inherited from class javax.faces.application.ConfigurableNavigationHandler
performNavigation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackwardsCompatibleNavigationHandlerWrapper

public BackwardsCompatibleNavigationHandlerWrapper(NavigationHandler wrapped,
                                                   ConfigurableNavigationHandler doubleWrapped)
Method Detail

getNavigationCase

public NavigationCase getNavigationCase(FacesContext context,
                                        String fromAction,
                                        String outcome)
Specified by:
getNavigationCase in class ConfigurableNavigationHandler

getNavigationCases

public Map<String,Set<NavigationCase>> getNavigationCases()
Specified by:
getNavigationCases in class ConfigurableNavigationHandler

handleNavigation

public void handleNavigation(FacesContext context,
                             String fromAction,
                             String outcome)
Specified by:
handleNavigation in class NavigationHandler


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