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 javax.faces.application.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(javax.faces.application.NavigationHandler wrapped, javax.faces.application.ConfigurableNavigationHandler doubleWrapped)
           
 
Method Summary
 javax.faces.application.NavigationCase getNavigationCase(javax.faces.context.FacesContext context, java.lang.String fromAction, java.lang.String outcome)
           
 java.util.Map<java.lang.String,java.util.Set<javax.faces.application.NavigationCase>> getNavigationCases()
           
 void handleNavigation(javax.faces.context.FacesContext context, java.lang.String fromAction, java.lang.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(javax.faces.application.NavigationHandler wrapped,
                                                   javax.faces.application.ConfigurableNavigationHandler doubleWrapped)
Method Detail

getNavigationCase

public javax.faces.application.NavigationCase getNavigationCase(javax.faces.context.FacesContext context,
                                                                java.lang.String fromAction,
                                                                java.lang.String outcome)
Specified by:
getNavigationCase in class javax.faces.application.ConfigurableNavigationHandler

getNavigationCases

public java.util.Map<java.lang.String,java.util.Set<javax.faces.application.NavigationCase>> getNavigationCases()
Specified by:
getNavigationCases in class javax.faces.application.ConfigurableNavigationHandler

handleNavigation

public void handleNavigation(javax.faces.context.FacesContext context,
                             java.lang.String fromAction,
                             java.lang.String outcome)
Specified by:
handleNavigation in class javax.faces.application.NavigationHandler


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