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

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

?? xmlviewresolver.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.servlet.view;

import java.util.Locale;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.xml.ResourceEntityResolver;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.Ordered;
import org.springframework.core.io.Resource;
import org.springframework.web.context.support.GenericWebApplicationContext;
import org.springframework.web.servlet.View;

/**
 * Implementation of ViewResolver that uses bean definitions in an
 * XML file, specified by resource location. The file will typically
 * be located in the WEB-INF directory; default is "/WEB-INF/views.xml".
 *
 * <p>This ViewResolver does not support internationalization.
 * Consider ResourceBundleViewResolver if you need to apply
 * different view resources per locale.
 *
 * <p>Note: This ViewResolver implements the Ordered interface to allow for
 * flexible participation in ViewResolver chaining. For example, some special
 * views could be defined via this ViewResolver (giving it 0 as "order" value),
 * while all remaining views could be resolved by a UrlBasedViewResolver.
 *
 * @author Juergen Hoeller
 * @since 18.06.2003
 * @see org.springframework.context.ApplicationContext#getResource
 * @see ResourceBundleViewResolver
 * @see UrlBasedViewResolver
 */
public class XmlViewResolver extends AbstractCachingViewResolver implements Ordered, DisposableBean {

	/** Default if no other location is supplied */
	public final static String DEFAULT_LOCATION = "/WEB-INF/views.xml";


	private int order = Integer.MAX_VALUE;  // default: same as non-Ordered

	private Resource location;

	private ConfigurableApplicationContext cachedFactory;


	public void setOrder(int order) {
		this.order = order;
	}

	public int getOrder() {
		return order;
	}

	/**
	 * Set the location of the XML file that defines the view beans.
	 * <p>The default is "/WEB-INF/views.xml".
	 * @param location the location of the XML file.
	 */
	public void setLocation(Resource location) {
		this.location = location;
	}

	/**
	 * Pre-initialize the factory from the XML file.
	 * Only effective if caching is enabled.
	 */
	protected void initApplicationContext() throws BeansException {
		if (isCache()) {
			initFactory();
		}
	}


	/**
	 * This implementation returns just the view name,
	 * as XmlViewResolver doesn't support localized resolution.
	 */
	protected Object getCacheKey(String viewName, Locale locale) {
		return viewName;
	}

	protected View loadView(String viewName, Locale locale) throws BeansException {
		BeanFactory factory = initFactory();
		try {
			return (View) factory.getBean(viewName, View.class);
		}
		catch (NoSuchBeanDefinitionException ex) {
			// to allow for ViewResolver chaining
			return null;
		}
	}

	/**
	 * Initialize the view bean factory from the XML file.
	 * Synchronized because of access by parallel threads.
	 * @throws BeansException in case of initialization errors
	 */
	protected synchronized BeanFactory initFactory() throws BeansException {
		if (this.cachedFactory != null) {
			return this.cachedFactory;
		}

		Resource actualLocation = this.location;
		if (actualLocation == null) {
			actualLocation = getApplicationContext().getResource(DEFAULT_LOCATION);
		}

		// Create child ApplicationContext for views.
		GenericWebApplicationContext factory = new GenericWebApplicationContext();
		factory.setParent(getApplicationContext());
		factory.setServletContext(getServletContext());

		// Load XML resource with context-aware entity resolver.
		XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);
		reader.setEntityResolver(new ResourceEntityResolver(getApplicationContext()));
		reader.loadBeanDefinitions(actualLocation);

		factory.refresh();

		if (isCache()) {
			this.cachedFactory = factory;
		}
		return factory;
	}


	/**
	 * Close the view bean factory on context shutdown.
	 */
	public void destroy() throws BeansException {
		if (this.cachedFactory != null) {
			this.cachedFactory.close();
		}
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一二三区精品福利视频| 亚洲.国产.中文慕字在线| 韩国毛片一区二区三区| 欧美日韩一级大片网址| 一区二区三国产精华液| 欧美三级视频在线| 日本系列欧美系列| 精品裸体舞一区二区三区| 国产乱码精品一区二区三区五月婷 | 91丨porny丨最新| 国产精品电影一区二区| 色94色欧美sute亚洲13| 国产黄人亚洲片| 国产精品久久毛片a| 欧美亚洲禁片免费| 青青草原综合久久大伊人精品 | 亚洲欧美综合在线精品| 顶级嫩模精品视频在线看| 亚洲人被黑人高潮完整版| 欧美三级电影网站| 国产一区二区三区在线观看免费视频| 国产精品午夜在线观看| 色播五月激情综合网| 视频一区视频二区中文| 久久久精品免费观看| 欧美在线观看视频在线| 久久99最新地址| 一区二区三区在线播| 精品理论电影在线观看| 在线免费观看日本欧美| 激情综合色综合久久| 亚洲人成伊人成综合网小说| 欧美一区欧美二区| 成人的网站免费观看| 石原莉奈在线亚洲二区| 国产精品伦理一区二区| 欧美一区二区黄| 国产91在线观看| 日本欧美在线观看| 中文字幕一区二区三区不卡| 日韩精品一区二区三区视频在线观看 | 精品成人一区二区三区| 在线免费亚洲电影| 国产精品综合一区二区三区| 亚洲成a人片在线观看中文| 国产拍揄自揄精品视频麻豆| 欧美视频在线一区| fc2成人免费人成在线观看播放| 蜜臀av一区二区三区| 自拍偷拍欧美激情| 久久久精品免费网站| 日韩视频在线一区二区| 在线一区二区三区四区五区 | 在线中文字幕一区| 成人一区二区三区视频在线观看| 免费xxxx性欧美18vr| 亚洲大尺度视频在线观看| 综合亚洲深深色噜噜狠狠网站| 久久久久久久久伊人| 国产成人欧美日韩在线电影| 蜜桃av噜噜一区| 亚洲大片一区二区三区| 亚洲国产视频一区| 成人欧美一区二区三区黑人麻豆| 久久免费视频一区| 精品国产一区二区三区忘忧草| 欧美肥妇free| 8x8x8国产精品| 美女在线一区二区| 裸体一区二区三区| 麻豆国产欧美一区二区三区| 日韩激情视频网站| 日韩av在线发布| 日韩av高清在线观看| 亚洲成人免费看| 亚洲一区二区三区不卡国产欧美| 亚洲免费色视频| 亚洲综合激情另类小说区| 日韩成人一级大片| 欧美日韩精品是欧美日韩精品| 国产麻豆午夜三级精品| 精品无人码麻豆乱码1区2区| 日本中文一区二区三区| 日本欧洲一区二区| 久久99精品久久久久婷婷| 日本亚洲最大的色成网站www| 美国十次了思思久久精品导航| 欧美日韩午夜影院| 在线精品国精品国产尤物884a| 欧美日韩国产综合久久| 51午夜精品国产| 26uuu精品一区二区| 国产视频911| 国产精品电影院| 亚洲一区二区黄色| 美国十次了思思久久精品导航| 国产主播一区二区| 国产91对白在线观看九色| 亚洲一线二线三线久久久| 性久久久久久久久久久久| 青青国产91久久久久久| 国产精品一区二区在线看| 91在线看国产| 欧美一区日韩一区| 欧美国产日韩一二三区| 亚洲综合激情另类小说区| 日韩av在线免费观看不卡| 成人性生交大合| 欧美三级在线播放| 亚洲国产精品成人综合| 一区二区三区欧美久久| 久久免费精品国产久精品久久久久| 国产精品国产三级国产aⅴ中文| 亚洲一区二区视频在线观看| 九九九精品视频| 在线影视一区二区三区| 精品国精品国产| 一区二区国产视频| 国产一区二区三区四区五区入口 | 免费成人深夜小野草| 国产一区二区福利视频| 在线观看免费视频综合| 久久婷婷久久一区二区三区| 亚洲人成网站影音先锋播放| 久久综合综合久久综合| 日本乱人伦aⅴ精品| 精品国产精品一区二区夜夜嗨| 亚洲精品视频一区二区| 国产一区二三区| 欧美精品第1页| 最新久久zyz资源站| 国产麻豆一精品一av一免费| 久久精品国产亚洲a| 在线观看三级视频欧美| 国产精品美女久久久久久久网站| 日本 国产 欧美色综合| 在线亚洲高清视频| 中文字幕精品一区二区三区精品| 日本v片在线高清不卡在线观看| 色呦呦国产精品| 中文无字幕一区二区三区| 久久精品国产99久久6| 欧美三级一区二区| 亚洲欧美色综合| 成人理论电影网| 国产亚洲精品资源在线26u| 精品久久人人做人人爽| 日日夜夜精品免费视频| 在线观看国产91| 亚洲天堂久久久久久久| 国产一区二区精品久久91| 日韩免费视频线观看| 日韩精品视频网站| 欧美在线free| 亚洲欧美日韩中文字幕一区二区三区 | 91精品国产aⅴ一区二区| 亚洲成人自拍一区| 色网站国产精品| 亚洲色图欧美在线| av色综合久久天堂av综合| 中文字幕不卡一区| 成人激情免费视频| 国产精品久久久久天堂| 成人精品在线视频观看| 国产精品久久久久永久免费观看| 国产大陆精品国产| 中文字幕二三区不卡| 成人性生交大片免费看视频在线| 国产欧美精品一区二区三区四区| 国产一区二区三区四区在线观看 | 中文字幕综合网| 97精品久久久久中文字幕 | 国产精品入口麻豆九色| 99视频精品在线| 亚洲精品成人在线| 欧美美女视频在线观看| 日韩精品一级中文字幕精品视频免费观看 | 久久久久久久久岛国免费| 国产精品一区二区免费不卡| 久久精品欧美一区二区三区不卡 | 午夜欧美一区二区三区在线播放| 欧美日韩免费观看一区二区三区| 日欧美一区二区| 精品国产伦一区二区三区观看方式| 美女国产一区二区三区| 国产成人无遮挡在线视频| 中文字幕欧美国产| 色综合久久综合网欧美综合网| 亚洲午夜久久久久久久久久久 | 欧美三级日韩三级| 久久亚洲私人国产精品va媚药| 国产高清不卡二三区| 亚洲人成小说网站色在线| 欧美三级在线播放| 国产自产视频一区二区三区| 国产精品毛片久久久久久久| 欧日韩精品视频| 经典一区二区三区| 综合色天天鬼久久鬼色| 欧美精选在线播放|