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

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

?? staticwebapplicationcontext.java

?? spring framework 2.5.4源代碼
?? JAVA
字號:
/*
 * Copyright 2002-2008 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.context.support;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;

import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.support.StaticApplicationContext;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.ui.context.Theme;
import org.springframework.ui.context.ThemeSource;
import org.springframework.ui.context.support.UiApplicationContextUtils;
import org.springframework.web.context.ConfigurableWebApplicationContext;
import org.springframework.web.context.ServletConfigAware;
import org.springframework.web.context.ServletContextAware;
import org.springframework.web.context.request.RequestScope;
import org.springframework.web.context.request.SessionScope;

/**
 * Static {@link org.springframework.web.context.WebApplicationContext}
 * implementation for testing. Not intended for use in production applications.
 *
 * <p>Implements the {@link org.springframework.web.context.ConfigurableWebApplicationContext}
 * interface to allow for direct replacement of an {@link XmlWebApplicationContext},
 * despite not actually supporting external configuration files.
 *
 * <p>Interprets resource paths as servlet context resources, i.e. as paths beneath
 * the web application root. Absolute paths, e.g. for files outside the web app root,
 * can be accessed via "file:" URLs, as implemented by
 * {@link org.springframework.core.io.DefaultResourceLoader}.
 *
 * <p>In addition to the special beans detected by
 * {@link org.springframework.context.support.AbstractApplicationContext},
 * this class detects a bean of type {@link org.springframework.ui.context.ThemeSource}
 * in the context, under the special bean name "themeSource".
 *
 * @author Rod Johnson
 * @author Juergen Hoeller
 * @see org.springframework.ui.context.ThemeSource
 */
public class StaticWebApplicationContext extends StaticApplicationContext
		implements ConfigurableWebApplicationContext, ThemeSource {

	private ServletContext servletContext;

	private ServletConfig servletConfig;

	private String namespace;

	private ThemeSource themeSource;


	public StaticWebApplicationContext() {
		setDisplayName("Root WebApplicationContext");
	}


	/**
	 * Set the ServletContext that this WebApplicationContext runs in.
	 */
	public void setServletContext(ServletContext servletContext) {
		this.servletContext = servletContext;
	}

	public ServletContext getServletContext() {
		return this.servletContext;
	}

	public void setServletConfig(ServletConfig servletConfig) {
		this.servletConfig = servletConfig;
		if (servletConfig != null && this.servletContext == null) {
			this.servletContext = servletConfig.getServletContext();
		}
	}

	public ServletConfig getServletConfig() {
		return this.servletConfig;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
		if (namespace != null) {
			setDisplayName("WebApplicationContext for namespace '" + namespace + "'");
		}
	}

	public String getNamespace() {
		return this.namespace;
	}

	/**
	 * The {@link StaticWebApplicationContext} class does not support this method.
	 * @throws UnsupportedOperationException <b>always</b>
	 */
	public void setConfigLocation(String configLocation) {
		if (configLocation != null) {
			throw new UnsupportedOperationException("StaticWebApplicationContext does not support config locations");
		}
	}

	/**
	 * The {@link StaticWebApplicationContext} class does not support this method.
	 * @throws UnsupportedOperationException <b>always</b>
	 */
	public void setConfigLocations(String[] configLocations) {
		if (configLocations != null) {
			throw new UnsupportedOperationException("StaticWebApplicationContext does not support config locations");
		}
	}

	public String[] getConfigLocations() {
		return null;
	}


	/**
	 * Register request/session scopes, a {@link ServletContextAwareProcessor}, etc.
	 */
	protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
		beanFactory.registerScope(SCOPE_REQUEST, new RequestScope());
		beanFactory.registerScope(SCOPE_SESSION, new SessionScope(false));
		beanFactory.registerScope(SCOPE_GLOBAL_SESSION, new SessionScope(true));

		beanFactory.addBeanPostProcessor(new ServletContextAwareProcessor(this.servletContext, this.servletConfig));
		beanFactory.ignoreDependencyInterface(ServletContextAware.class);
		beanFactory.ignoreDependencyInterface(ServletConfigAware.class);
	}

	/**
	 * This implementation supports file paths beneath the root of the ServletContext.
	 * @see ServletContextResource
	 */
	protected Resource getResourceByPath(String path) {
		return new ServletContextResource(this.servletContext, path);
	}

	/**
	 * This implementation supports pattern matching in unexpanded WARs too.
	 * @see ServletContextResourcePatternResolver
	 */
	protected ResourcePatternResolver getResourcePatternResolver() {
		return new ServletContextResourcePatternResolver(this);
	}

	/**
	 * Initialize the theme capability.
	 */
	protected void onRefresh() {
		this.themeSource = UiApplicationContextUtils.initThemeSource(this);
	}

	public Theme getTheme(String themeName) {
		return this.themeSource.getTheme(themeName);
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产高清不卡一区二区| 天天色 色综合| 欧美日韩高清影院| 国产大陆精品国产| 一区二区三区加勒比av| 日韩视频在线一区二区| 国产91丝袜在线18| 日本不卡不码高清免费观看| 国产精品视频第一区| 欧美在线免费观看视频| 国产裸体歌舞团一区二区| 亚洲精品视频在线看| 欧美精品一区二区三区视频| 色狠狠av一区二区三区| 久久国产精品露脸对白| 成人激情视频网站| 成人午夜视频在线| 欧美日本一区二区在线观看| 国产乱码一区二区三区| 日韩黄色小视频| 自拍视频在线观看一区二区| 精品剧情v国产在线观看在线| 91啪在线观看| 国产激情一区二区三区桃花岛亚洲| 亚洲制服丝袜av| 国产欧美日韩三级| 日韩欧美区一区二| 欧美日韩一级黄| 99视频一区二区| 国产在线精品国自产拍免费| 亚洲国产一区二区在线播放| 欧美国产激情一区二区三区蜜月| 欧美一个色资源| 欧美伊人精品成人久久综合97| 国产精品88888| 精品无人码麻豆乱码1区2区| 亚洲一区二区三区在线播放| 亚洲乱码国产乱码精品精的特点| 中文欧美字幕免费| 欧美精品在线视频| 一本高清dvd不卡在线观看| 北岛玲一区二区三区四区| 国产呦精品一区二区三区网站| 青娱乐精品视频| 91精品国产一区二区三区香蕉| 色88888久久久久久影院按摩| 成人精品免费视频| 国产精品影音先锋| 国产午夜精品美女毛片视频| 精品国产电影一区二区| 欧美一区二区三区四区久久 | 国产欧美1区2区3区| 欧美精品一区在线观看| 精品理论电影在线观看| 欧美变态口味重另类| 欧美日韩一本到| 欧美精三区欧美精三区| 亚洲国产精华液网站w| 91精品国产一区二区三区| 久久国内精品视频| 男人的天堂久久精品| 青椒成人免费视频| 九九**精品视频免费播放| 九九在线精品视频| 日韩**一区毛片| 亚洲图片自拍偷拍| 亚洲第一激情av| 亚洲电影在线播放| 洋洋成人永久网站入口| 中文字幕不卡的av| 亚洲欧美国产三级| 亚洲成人一二三| 精一区二区三区| 成人网在线播放| 91搞黄在线观看| 91在线国内视频| 国产成人精品免费在线| 亚洲自拍另类综合| 视频一区中文字幕| 国产精品综合一区二区三区| 丁香六月久久综合狠狠色| 色呦呦国产精品| 欧美日韩一级二级三级| 精品国产91亚洲一区二区三区婷婷| 久久综合丝袜日本网| 国产精品美女视频| 一区二区高清视频在线观看| 亚洲成人www| 国产在线一区观看| 欧美一区二区三区婷婷月色| 在线免费观看视频一区| 欧美一区中文字幕| 久久久精品日韩欧美| 亚洲免费资源在线播放| 日本怡春院一区二区| 国产91精品免费| 欧美性欧美巨大黑白大战| 日韩你懂的在线播放| 精品国产乱码久久久久久夜甘婷婷 | 国产一区二区在线观看免费| av不卡免费在线观看| 欧美一区二区在线免费观看| 精品伦理精品一区| 日精品一区二区三区| 亚洲欧美一区二区三区久本道91| 亚洲精品乱码久久久久久| 狠狠色综合色综合网络| 一区二区三区在线视频观看58| 久久国产剧场电影| 欧日韩精品视频| 久久日韩精品一区二区五区| 亚洲综合在线第一页| 激情图区综合网| 欧美群妇大交群中文字幕| 久久久久久久久伊人| 奇米色一区二区三区四区| 99久久综合精品| 久久久久国产一区二区三区四区 | 不卡的电视剧免费网站有什么| 成人黄动漫网站免费app| 欧美日韩精品一区二区天天拍小说 | 91精品在线麻豆| 国产精品久久久久永久免费观看 | 丝袜亚洲精品中文字幕一区| 国产suv精品一区二区三区 | 91黄色免费版| 欧美国产精品v| 精品亚洲成av人在线观看| 欧美性大战久久久| 成人欧美一区二区三区在线播放| 国产精一区二区三区| 日韩一区二区三区精品视频| 亚洲一区二区三区四区的| 亚洲精品综合在线| 国产69精品久久99不卡| 欧美一区二区三区电影| 亚洲国产综合91精品麻豆 | 日韩欧美中文字幕制服| 一区二区三区欧美日| 99re在线精品| 中文字幕av一区二区三区高| 国产在线精品一区在线观看麻豆| 日韩精品综合一本久道在线视频| 国产在线麻豆精品观看| 韩国三级在线一区| 日韩午夜中文字幕| 麻豆久久久久久久| 日韩无一区二区| 欧洲精品一区二区三区在线观看| 久久久久久亚洲综合影院红桃| 免费久久99精品国产| 欧美一区二区三区人| 美女网站视频久久| 日韩欧美中文一区二区| 久久国产欧美日韩精品| 精品国产欧美一区二区| 国产欧美一二三区| av在线不卡网| 中文字幕av资源一区| 国产ts人妖一区二区| 国产午夜精品一区二区三区视频| 成人av资源网站| 中文字幕视频一区| 91国产免费看| 日韩不卡一区二区| 欧美哺乳videos| 国产成人激情av| 亚洲欧美色一区| 欧美日韩三级一区二区| 五月婷婷色综合| 国产suv一区二区三区88区| 中文乱码免费一区二区| 色欧美日韩亚洲| 五月婷婷欧美视频| 2020日本不卡一区二区视频| 国产亚洲欧美日韩在线一区| www.欧美精品一二区| 亚洲一区二区av电影| 911精品产国品一二三产区| 九色porny丨国产精品| 国产欧美日韩不卡免费| 色综合久久综合网| 日本欧美韩国一区三区| 国产欧美日韩久久| 色综合欧美在线| 日韩不卡手机在线v区| 色综合网色综合| 日韩va亚洲va欧美va久久| 精品国产免费人成在线观看| 91精品国产麻豆| 亚洲情趣在线观看| 欧美乱妇23p| 成人看片黄a免费看在线| 国产精品不卡一区| 欧美性高清videossexo| 国产美女精品在线| 亚洲图片有声小说| 久久久综合网站| 在线精品视频小说1| 极品美女销魂一区二区三区免费 |