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

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

?? abstractrefreshablewebapplicationcontext.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.AbstractRefreshableConfigApplicationContext;
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;

/**
 * {@link org.springframework.context.support.AbstractRefreshableApplicationContext}
 * subclass which implements the
 * {@link org.springframework.web.context.ConfigurableWebApplicationContext}
 * interface for web environments. Provides a "configLocations" property,
 * to be populated through the ConfigurableWebApplicationContext interface
 * on web application startup.
 *
 * <p>This class is as easy to subclass as AbstractRefreshableApplicationContext:
 * All you need to implements is the {@link #loadBeanDefinitions} method;
 * see the superclass javadoc for details. Note that implementations are supposed
 * to load bean definitions from the files specified by the locations returned
 * by the {@link #getConfigLocations} method.
 *
 * <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".
 *
 * <p><b>This is the web context to be subclassed for a different bean definition format.</b>
 * Such a context implementation can be specified as "contextClass" context-param
 * for {@link org.springframework.web.context.ContextLoader} or as "contextClass"
 * init-param for {@link org.springframework.web.servlet.FrameworkServlet},
 * replacing the default {@link XmlWebApplicationContext}. It will then automatically
 * receive the "contextConfigLocation" context-param or init-param, respectively.
 *
 * <p>Note that WebApplicationContext implementations are generally supposed
 * to configure themselves based on the configuration received through the
 * {@link ConfigurableWebApplicationContext} interface. In contrast, a standalone
 * application context might allow for configuration in custom startup code
 * (for example, {@link org.springframework.context.support.GenericApplicationContext}).
 *
 * @author Juergen Hoeller
 * @since 1.1.3
 * @see #loadBeanDefinitions
 * @see org.springframework.web.context.ConfigurableWebApplicationContext#setConfigLocations
 * @see org.springframework.ui.context.ThemeSource
 * @see XmlWebApplicationContext
 */
public abstract class AbstractRefreshableWebApplicationContext extends AbstractRefreshableConfigApplicationContext
		implements ConfigurableWebApplicationContext, ThemeSource {

	/** Servlet context that this context runs in */
	private ServletContext servletContext;

	/** Servlet config that this context runs in, if any */
	private ServletConfig servletConfig;

	/** Namespace of this context, or <code>null</code> if root */
	private String namespace;

	/** the ThemeSource for this ApplicationContext */
	private ThemeSource themeSource;


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


	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;
	}

	public String[] getConfigLocations() {
		return super.getConfigLocations();
	}


	/**
	 * Register request/session scopes, a {@link ServletContextAwareProcessor}, etc.
	 */
	protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
		beanFactory.addBeanPostProcessor(new ServletContextAwareProcessor(this.servletContext, this.servletConfig));
		beanFactory.ignoreDependencyInterface(ServletContextAware.class);
		beanFactory.ignoreDependencyInterface(ServletConfigAware.class);
		beanFactory.registerResolvableDependency(ServletContext.class, this.servletContext);
		beanFactory.registerResolvableDependency(ServletConfig.class, this.servletConfig);

		WebApplicationContextUtils.registerWebApplicationScopes(beanFactory);
	}

	/**
	 * 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一区二区夜夜嗨| 在线免费av一区| 日韩一区二区电影在线| 久久99国产精品久久| 精品国产一区二区三区四区四 | 色一情一乱一乱一91av| 亚洲欧美激情小说另类| av色综合久久天堂av综合| 国产精品麻豆一区二区| 成人av电影免费在线播放| 欧美最猛性xxxxx直播| 亚洲国产日韩一区二区| 欧美午夜精品一区二区三区| 亚洲电影一区二区| 欧美日产国产精品| 国产精品综合二区| 国产精品日日摸夜夜摸av| 97成人超碰视| 香蕉久久夜色精品国产使用方法| 精品对白一区国产伦| 国产一区二区三区在线观看免费 | 91成人国产精品| 亚洲国产视频一区二区| 777久久久精品| 成人免费毛片a| 亚洲午夜视频在线观看| 日韩精品一区在线| 成人午夜短视频| 婷婷综合另类小说色区| 精品国产3级a| 96av麻豆蜜桃一区二区| 亚洲成人精品在线观看| 日韩区在线观看| 成人av在线一区二区三区| 一区二区理论电影在线观看| 欧美一级日韩不卡播放免费| 麻豆国产精品一区二区三区 | 国产在线麻豆精品观看| 一区二区三区美女| 日韩欧美在线一区二区三区| 福利电影一区二区| 日韩成人精品在线观看| 久久精品亚洲精品国产欧美| 91精品欧美福利在线观看| 成人性生交大片免费看中文| 婷婷中文字幕综合| 国产精品亲子伦对白| 日韩你懂的在线播放| 日本道色综合久久| 国产乱码精品一区二区三区五月婷| 亚洲视频一区在线观看| 久久久久青草大香线综合精品| 一本到高清视频免费精品| 国内久久精品视频| 日韩中文字幕区一区有砖一区| 欧美精品一区男女天堂| 7777精品伊人久久久大香线蕉完整版| 成人综合婷婷国产精品久久| 人禽交欧美网站| 一区二区三区四区五区视频在线观看| 欧美日韩一区三区四区| 91麻豆福利精品推荐| 国产激情91久久精品导航| 免费成人av资源网| 一区二区三区在线看| 亚洲视频在线一区二区| 国产人伦精品一区二区| 日韩欧美一区在线观看| 色成年激情久久综合| av激情亚洲男人天堂| 风间由美一区二区av101| 蜜桃一区二区三区四区| 午夜激情久久久| 亚洲综合激情网| 一色屋精品亚洲香蕉网站| 精品久久久久99| 51精品秘密在线观看| 欧美性大战久久久| 99re这里只有精品首页| 99综合电影在线视频| 久久99最新地址| 免费在线观看精品| 日本aⅴ免费视频一区二区三区| 亚洲伦在线观看| 91福利视频网站| 欧美性受xxxx黑人xyx性爽| 91网站在线播放| 欧美三级中文字| 欧美日韩国产乱码电影| 欧美一区二区三区四区在线观看| 日韩三级视频在线看| 亚洲综合网站在线观看| 欧美欧美欧美欧美| 亚洲图片欧美视频| 亚洲精品国久久99热| 一卡二卡三卡日韩欧美| 亚洲乱码国产乱码精品精的特点| 一区二区三区不卡视频| 亚洲电影激情视频网站| 美日韩黄色大片| 激情国产一区二区| 一本一道久久a久久精品| 欧美色图片你懂的| 日韩一区二区三区四区五区六区| 久久亚洲一区二区三区明星换脸| 国产精品久久久久9999吃药| 亚洲电影中文字幕在线观看| 精品一区二区国语对白| proumb性欧美在线观看| 777xxx欧美| 中文字幕视频一区二区三区久| 亚洲最新在线观看| 国产一区日韩二区欧美三区| 91社区在线播放| 精品久久久影院| 亚洲一区二区在线播放相泽| 国产一区二区导航在线播放| 色婷婷亚洲一区二区三区| 26uuu精品一区二区在线观看| 成人午夜av在线| 91丨九色丨国产丨porny| 91精品国产综合久久久久久| 欧美激情一二三区| 日本aⅴ免费视频一区二区三区 | 国产精品久久久久影院老司| 亚洲午夜av在线| 国产99精品国产| 日韩精品一区二区三区视频| 亚洲美女在线国产| 国产精品1区2区3区在线观看| 在线观看欧美黄色| 国产精品久久久一区麻豆最新章节| 午夜视频在线观看一区二区| 不卡的电视剧免费网站有什么| 91精品婷婷国产综合久久性色| 亚洲色图第一区| 成人免费看视频| 久久色成人在线| 日本一区中文字幕| 色就色 综合激情| 国产精品国产三级国产普通话三级 | 午夜影院在线观看欧美| 美女www一区二区| 色先锋久久av资源部| 欧美激情一区二区三区不卡 | 亚洲日本一区二区三区| 国产精品资源在线看| 91精品久久久久久久久99蜜臂| 亚洲色图制服丝袜| 成人黄色一级视频| 国产女同互慰高潮91漫画| 看电视剧不卡顿的网站| 欧美精品第1页| 亚洲bt欧美bt精品| 欧美系列在线观看| 亚洲男人的天堂在线aⅴ视频| 国产ts人妖一区二区| 久久只精品国产| 久久99国产精品尤物| 精品日韩av一区二区| 久久精品二区亚洲w码| 欧美大片日本大片免费观看| 首页亚洲欧美制服丝腿| 欧美麻豆精品久久久久久| 欧美手机在线视频| 国产精品午夜电影| 福利一区福利二区| 国产精品麻豆一区二区| aaa国产一区| 综合自拍亚洲综合图不卡区| 91美女在线看| 一区二区三区四区av| 欧美系列日韩一区| 亚洲国产综合91精品麻豆| 欧美日韩国产首页| 热久久国产精品| 久久久亚洲综合| 成人h动漫精品一区二区| 国产精品乱码人人做人人爱| 99精品久久只有精品| 亚洲夂夂婷婷色拍ww47 | 精品成人私密视频| 粉嫩蜜臀av国产精品网站| 国产精品区一区二区三区| 色噜噜狠狠色综合欧洲selulu| 亚洲精品中文在线影院| 制服丝袜亚洲网站| 国产一区二区精品久久91| 国产精品久久三| 欧美视频一区二区三区在线观看| 麻豆久久久久久| 国产精品天干天干在观线| 欧美性色综合网| 久久99最新地址| 亚洲欧美日韩国产中文在线| 69p69国产精品| 成人97人人超碰人人99| 午夜视频在线观看一区二区三区 | 日韩欧美美女一区二区三区|