亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? delegatingnavigationhandlerproxy.java

?? spring framework 2.5.4源代碼
?? JAVA
字號:
/*
 * Copyright 2002-2006 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.web.jsf;

import javax.faces.application.NavigationHandler;
import javax.faces.context.FacesContext;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.web.context.WebApplicationContext;

/**
 * JSF NavigationHandler implementation that delegates to a NavigationHandler
 * bean obtained from the Spring root WebApplicationContext.
 *
 * <p>Configure this handler proxy in your <code>faces-config.xml</code> file
 * as follows:
 *
 * <pre>
 * &lt;application&gt;
 *   ...
 *   &lt;navigation-handler&gt;
 * 	   org.springframework.web.jsf.DelegatingNavigationHandlerProxy
 *   &lt;/navigation-handler&gt;
 *   ...
 * &lt;/application&gt;</pre>
 *
 * By default, the Spring ApplicationContext will be searched for the NavigationHandler
 * under the bean name "jsfNavigationHandler". In the simplest case, this is a plain
 * Spring bean definition like the following. However, all of Spring's bean configuration
 * power can be applied to such a bean, in particular all flavors of dependency injection.
 *
 * <pre>
 * &lt;bean name="jsfNavigationHandler" class="mypackage.MyNavigationHandler"&gt;
 *   &lt;property name="myProperty" ref="myOtherBean"/&gt;
 * &lt;/bean&gt;</pre>
 *
 * The target NavigationHandler bean will typically extend the standard JSF
 * NavigationHandler class. However, note that decorating the original
 * NavigationHandler (the JSF provider's default handler) is <i>not</i> supported
 * in such a scenario, since we can't inject the original handler in standard
 * JSF style (that is, as constructor argument).
 *
 * <p>For <b>decorating the original NavigationHandler</b>, make sure that your
 * target bean extends Spring's <b>DecoratingNavigationHandler</b> class. This
 * allows to pass in the original handler as method argument, which this proxy
 * automatically detects. Note that a DecoratingNavigationHandler subclass
 * will still work as standard JSF NavigationHandler as well!
 *
 * <p>This proxy may be subclassed to change the bean name used to search for the
 * navigation handler, change the strategy used to obtain the target handler,
 * or change the strategy used to access the ApplicationContext (normally obtained
 * via {@link FacesContextUtils#getWebApplicationContext(FacesContext)}).
 *
 * @author Juergen Hoeller
 * @author Colin Sampaleanu
 * @since 1.2.7
 * @see DecoratingNavigationHandler
 */
public class DelegatingNavigationHandlerProxy extends NavigationHandler {

	/**
	 * Default name of the target bean in the Spring application context:
	 * "jsfNavigationHandler"
	 */
	public final static String DEFAULT_TARGET_BEAN_NAME = "jsfNavigationHandler";

	private NavigationHandler originalNavigationHandler;


	/**
	 * Create a new DelegatingNavigationHandlerProxy.
	 */
	public DelegatingNavigationHandlerProxy() {
	}

	/**
	 * Create a new DelegatingNavigationHandlerProxy.
	 * @param originalNavigationHandler the original NavigationHandler
	 */
	public DelegatingNavigationHandlerProxy(NavigationHandler originalNavigationHandler) {
		this.originalNavigationHandler = originalNavigationHandler;
	}


	/**
	 * Handle the navigation request implied by the specified parameters,
	 * through delegating to the target bean in the Spring application context.
	 * <p>The target bean needs to extend the JSF NavigationHandler class.
	 * If it extends Spring's DecoratingNavigationHandler, the overloaded
	 * <code>handleNavigation</code> method with the original NavigationHandler
	 * as argument will be used. Else, the standard <code>handleNavigation</code>
	 * method will be called.
	 */
	public void handleNavigation(FacesContext facesContext, String fromAction, String outcome) {
		NavigationHandler handler = getDelegate(facesContext);
		if (handler instanceof DecoratingNavigationHandler) {
			((DecoratingNavigationHandler) handler).handleNavigation(
					facesContext, fromAction, outcome, this.originalNavigationHandler);
		}
		else {
			handler.handleNavigation(facesContext, fromAction, outcome);
		}
	}

	/**
	 * Return the target NavigationHandler to delegate to.
	 * <p>By default, a bean with the name "jsfNavigationHandler" is obtained
	 * from the Spring root WebApplicationContext, for every invocation.
	 * @param facesContext the current JSF context
	 * @return the target NavigationHandler to delegate to
	 * @see #getTargetBeanName
	 * @see #getBeanFactory
	 */
	protected NavigationHandler getDelegate(FacesContext facesContext) {
		String targetBeanName = getTargetBeanName(facesContext);
		return (NavigationHandler) getBeanFactory(facesContext).getBean(targetBeanName, NavigationHandler.class);
	}

	/**
	 * Return the name of the target NavigationHandler bean in the BeanFactory.
	 * Default is "jsfNavigationHandler".
	 * @param facesContext the current JSF context
	 * @return the name of the target bean
	 */
	protected String getTargetBeanName(FacesContext facesContext) {
		return DEFAULT_TARGET_BEAN_NAME;
	}

	/**
	 * Retrieve the Spring BeanFactory to delegate bean name resolution to.
	 * <p>Default implementation delegates to <code>getWebApplicationContext</code>.
	 * Can be overridden to provide an arbitrary BeanFactory reference to resolve
	 * against; usually, this will be a full Spring ApplicationContext.
	 * @param facesContext the current JSF context
	 * @return the Spring BeanFactory (never <code>null</code>)
	 * @see #getWebApplicationContext
	 */
	protected BeanFactory getBeanFactory(FacesContext facesContext) {
		return getWebApplicationContext(facesContext);
	}

	/**
	 * Retrieve the web application context to delegate bean name resolution to.
	 * <p>Default implementation delegates to FacesContextUtils.
	 * @param facesContext the current JSF context
	 * @return the Spring web application context (never <code>null</code>)
	 * @see FacesContextUtils#getRequiredWebApplicationContext
	 */
	protected WebApplicationContext getWebApplicationContext(FacesContext facesContext) {
		return FacesContextUtils.getRequiredWebApplicationContext(facesContext);
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一二三区视频在线观看| 欧美精品在线一区二区三区| 色综合网站在线| 欧美日韩一区不卡| 精品欧美黑人一区二区三区| 欧美国产一区在线| 亚洲国产精品久久不卡毛片| 国产一区亚洲一区| 在线视频亚洲一区| 精品欧美一区二区在线观看| 欧洲视频一区二区| 精品粉嫩aⅴ一区二区三区四区| 国产精品乱人伦一区二区| 亚洲成人精品一区二区| 国产精品香蕉一区二区三区| 在线视频综合导航| 26uuu另类欧美亚洲曰本| 亚洲免费资源在线播放| 另类小说综合欧美亚洲| 色伊人久久综合中文字幕| 日韩欧美国产系列| 欧美日韩视频在线观看一区二区三区 | 成人午夜电影网站| 欧美日高清视频| 国产精品欧美综合在线| 日韩成人一区二区| 色综合亚洲欧洲| 色偷偷久久一区二区三区| www国产成人| 亚洲电影一区二区三区| 成人一区二区三区在线观看| 91麻豆精品国产91久久久使用方法| 国产精品素人视频| 久久国产麻豆精品| 欧美喷水一区二区| 亚洲日本va在线观看| 国产精品综合一区二区三区| 欧美人xxxx| 日韩欧美一级片| 亚洲综合在线免费观看| 国产传媒一区在线| 日韩女同互慰一区二区| 亚洲v日本v欧美v久久精品| 成人动漫一区二区三区| 久久精品一二三| 蜜桃久久久久久久| 欧美精品黑人性xxxx| 亚洲毛片av在线| av电影在线观看不卡| 色综合天天综合色综合av| 国产日产欧美一区二区视频| 免费观看日韩电影| 欧美日韩www| 亚洲综合另类小说| 在线亚洲一区二区| 综合久久国产九一剧情麻豆| 国产凹凸在线观看一区二区| xf在线a精品一区二区视频网站| 美女爽到高潮91| 欧美二区乱c少妇| 久久精品在线免费观看| 久久se精品一区二区| 91精品国产黑色紧身裤美女| 亚洲成人av在线电影| 日本乱人伦aⅴ精品| 亚洲精品综合在线| 97精品视频在线观看自产线路二| 国产精品久久久久久户外露出| 成人午夜免费电影| 国产精品你懂的在线欣赏| 国产a视频精品免费观看| 国产视频不卡一区| 国产91在线|亚洲| 国产拍揄自揄精品视频麻豆 | 久久精品人人爽人人爽| 韩国女主播成人在线| 久久影院午夜论| 国产精品资源在线看| 国产日产欧产精品推荐色| 国产成人精品网址| 国产精品天美传媒沈樵| 成人福利视频在线看| 亚洲三级免费观看| 日本高清免费不卡视频| 亚洲成人动漫一区| 日韩欧美一区电影| 国产成人欧美日韩在线电影| 国产精品美女久久久久av爽李琼 | 一区二区三区四区高清精品免费观看 | 精品国产人成亚洲区| 国产精品白丝jk黑袜喷水| 中文字幕欧美激情| 91国偷自产一区二区开放时间| 亚洲电影你懂得| 日韩一区二区三区在线观看 | 亚洲国产精品成人综合| 亚洲va欧美va国产va天堂影院| 欧美一区二区播放| 国产综合久久久久久久久久久久| 国产日韩精品久久久| 一本一本大道香蕉久在线精品 | 久久精品国内一区二区三区| 国产三级精品在线| 91原创在线视频| 天天免费综合色| 精品国产乱码久久久久久久| 亚洲国产综合色| 日韩精品资源二区在线| 国产精品亚洲а∨天堂免在线| 亚洲日韩欧美一区二区在线| 欧美日韩成人在线| 国产激情视频一区二区在线观看| 亚洲人成在线播放网站岛国| 欧美日韩国产美| 国产精品影视在线观看| 亚洲欧美激情一区二区| 欧美一区二区三区在线视频| 国产成人免费视频精品含羞草妖精 | 亚洲精品国产a久久久久久| 91麻豆精品国产91久久久久久久久| 国产一区二区影院| 亚洲精选一二三| 欧美精品一区二区久久久| 91亚洲男人天堂| 人妖欧美一区二区| 国产精品福利影院| 欧美一区二区在线不卡| 99精品久久99久久久久| 免费人成在线不卡| 亚洲日韩欧美一区二区在线| 欧美zozo另类异族| 欧美写真视频网站| 国产精品538一区二区在线| 亚洲成人av中文| 国产精品福利一区| 精品福利av导航| 欧美精品色综合| 99视频热这里只有精品免费| 九九精品视频在线看| 一区二区三区欧美日韩| 国产欧美一区在线| 日韩三级.com| 欧美午夜在线观看| 波多野结衣精品在线| 精品无人码麻豆乱码1区2区| 一区二区三区欧美| 国产精品二区一区二区aⅴ污介绍| 欧美一区二区三区四区久久| 色综合久久久久久久久久久| 国产麻豆精品在线| 免费视频最近日韩| 午夜精品福利一区二区三区蜜桃| 国产精品久久久久永久免费观看| 欧美一区二区三区免费大片| 91精品办公室少妇高潮对白| 国产美女精品在线| 美国av一区二区| 午夜日韩在线电影| 夜夜嗨av一区二区三区中文字幕| 国产精品三级久久久久三级| 精品久久国产老人久久综合| 91超碰这里只有精品国产| 欧美中文字幕久久| av在线这里只有精品| 国产aⅴ综合色| 国产伦精品一区二区三区视频青涩 | 成人sese在线| 一区二区三区视频在线观看| 1024成人网色www| 国产精品视频九色porn| 久久久高清一区二区三区| 精品久久久久一区| 精品日韩在线观看| 99久久99久久精品免费观看| 成人免费高清视频在线观看| 国产精品99久久久久久似苏梦涵| 蜜桃av噜噜一区二区三区小说| 日韩精品福利网| 日韩在线一区二区| 日韩在线一区二区三区| 丝袜国产日韩另类美女| 亚洲成a人v欧美综合天堂下载 | 欧美日韩亚洲另类| 欧美日韩精品是欧美日韩精品| 色老头久久综合| 91福利资源站| 在线一区二区三区| 欧美日本在线一区| 51精品久久久久久久蜜臀| 69p69国产精品| 日韩色在线观看| 精品国产伦理网| 国产午夜精品久久久久久免费视| 国产欧美一区在线| 亚洲欧美怡红院| 亚洲一区二三区| 日本欧美在线看| 韩国理伦片一区二区三区在线播放| 国产寡妇亲子伦一区二区| 成人av片在线观看|