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

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

?? contextloaderplugin.java

?? spring framework 2.5.4源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Copyright 2002-2007 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.struts;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ModuleConfig;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.ApplicationContextException;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.util.ClassUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.context.ConfigurableWebApplicationContext;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import org.springframework.web.context.support.XmlWebApplicationContext;

/**
 * Struts 1.1+ PlugIn that loads a Spring application context for the Struts
 * ActionServlet. This context will automatically refer to the root
 * WebApplicationContext (loaded by ContextLoaderListener/Servlet) as parent.
 *
 * <p>The default namespace of the WebApplicationContext is the name of the
 * Struts ActionServlet, suffixed with "-servlet" (e.g. "action-servlet").
 * The default location of the XmlWebApplicationContext configuration file
 * is therefore "/WEB-INF/action-servlet.xml".
 *
 * <pre>
 * &lt;plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"/&gt;</pre>
 *
 * The location of the context configuration files can be customized
 * through the "contextConfigLocation" setting, analogous to the root
 * WebApplicationContext and FrameworkServlet contexts.
 *
 * <pre>
 * &lt;plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"&gt;
 *   &lt;set-property property="contextConfigLocation" value="/WEB-INF/action-servlet.xml /WEB-INF/myContext.xml"/&gt;
 * &lt;/plug-in&gt;</pre>
 *
 * Beans defined in the ContextLoaderPlugIn context can be accessed
 * from conventional Struts Actions, via fetching the WebApplicationContext
 * reference from the ServletContext. ActionSupport and DispatchActionSupport
 * are pre-built convenience classes that provide easy access to the context.
 *
 * <p>It is normally preferable to access Spring's root WebApplicationContext
 * in such scenarios, though: A shared middle tier should be defined there
 * rather than in a ContextLoaderPlugin context, for access by any web component.
 * ActionSupport and DispatchActionSupport autodetect the root context too.
 *
 * <p>A special usage of this PlugIn is to define Struts Actions themselves
 * as beans, typically wiring them with middle tier components defined in the
 * root context. Such Actions will then be delegated to by proxy definitions
 * in the Struts configuration, using the DelegatingActionProxy class or
 * the DelegatingRequestProcessor.
 *
 * <p>Note that you can use a single ContextLoaderPlugIn for all Struts modules.
 * That context can in turn be loaded from multiple XML files, for example split
 * according to Struts modules. Alternatively, define one ContextLoaderPlugIn per
 * Struts module, specifying appropriate "contextConfigLocation" parameters.
 *
 * <p>Note: The idea of delegating to Spring-managed Struts Actions originated in
 * Don Brown's <a href="http://struts.sourceforge.net/struts-spring">Spring Struts Plugin</a>.
 * ContextLoaderPlugIn and DelegatingActionProxy constitute a clean-room
 * implementation of the same idea, essentially superseding the original plugin.
 * Many thanks to Don Brown and Matt Raible for the original work and for the
 * agreement to reimplement the idea in Spring proper!
 *
 * @author Juergen Hoeller
 * @since 1.0.1
 * @see #SERVLET_CONTEXT_PREFIX
 * @see ActionSupport
 * @see DispatchActionSupport
 * @see DelegatingActionProxy
 * @see DelegatingRequestProcessor
 * @see DelegatingTilesRequestProcessor
 * @see org.springframework.web.context.ContextLoaderListener
 * @see org.springframework.web.context.ContextLoaderServlet
 * @see org.springframework.web.servlet.FrameworkServlet
 */
public class ContextLoaderPlugIn implements PlugIn {

	/**
	 * Suffix for WebApplicationContext namespaces. If a Struts ActionServlet is
	 * given the name "action" in a context, the namespace used by this PlugIn will
	 * resolve to "action-servlet".
	 */
	public static final String DEFAULT_NAMESPACE_SUFFIX = "-servlet";

	/**
	 * Default context class for ContextLoaderPlugIn.
	 * @see org.springframework.web.context.support.XmlWebApplicationContext
	 */
	public static final Class DEFAULT_CONTEXT_CLASS = XmlWebApplicationContext.class;

	/**
	 * Prefix for the ServletContext attribute for the WebApplicationContext.
	 * The completion is the Struts module name.
	 */
	public static final String SERVLET_CONTEXT_PREFIX = ContextLoaderPlugIn.class.getName() + ".CONTEXT.";


	protected final Log logger = LogFactory.getLog(getClass());

	/** Custom WebApplicationContext class */
	private Class contextClass = DEFAULT_CONTEXT_CLASS;

	/** Namespace for this servlet */
	private String namespace;

	/** Explicit context config location */
	private String contextConfigLocation;

	/** The Struts ActionServlet that this PlugIn is registered with */
	private ActionServlet actionServlet;

	/** The Struts ModuleConfig that this PlugIn is registered with */
	private ModuleConfig moduleConfig;

	/** WebApplicationContext for the ActionServlet */
	private WebApplicationContext webApplicationContext;


	/**
	 * Set a custom context class by name. This class must be of type WebApplicationContext,
	 * when using the default ContextLoaderPlugIn implementation, the context class
	 * must also implement ConfigurableWebApplicationContext.
	 * @see #createWebApplicationContext
	 */
	public void setContextClassName(String contextClassName) throws ClassNotFoundException {
		this.contextClass = ClassUtils.forName(contextClassName);
	}

	/**
	 * Set a custom context class. This class must be of type WebApplicationContext,
	 * when using the default ContextLoaderPlugIn implementation, the context class
	 * must also implement ConfigurableWebApplicationContext.
	 * @see #createWebApplicationContext
	 */
	public void setContextClass(Class contextClass) {
		this.contextClass = contextClass;
	}

	/**
	 * Return the custom context class.
	 */
	public Class getContextClass() {
		return this.contextClass;
	}

	/**
	 * Set a custom namespace for the ActionServlet,
	 * to be used for building a default context config location.
	 */
	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	/**
	 * Return the namespace for the ActionServlet, falling back to default scheme if
	 * no custom namespace was set: e.g. "test-servlet" for a servlet named "test".
	 */
	public String getNamespace() {
		if (this.namespace != null) {
			return this.namespace;
		}
		if (this.actionServlet != null) {
			return this.actionServlet.getServletName() + DEFAULT_NAMESPACE_SUFFIX;
		}
		return null;
	}

	/**
	 * Set the context config location explicitly, instead of relying on the default
	 * location built from the namespace. This location string can consist of
	 * multiple locations separated by any number of commas and spaces.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩主播视频在线| 国产精品天天看| 欧美偷拍一区二区| 91福利视频久久久久| 99久久亚洲一区二区三区青草| 成人国产精品免费观看动漫| av日韩在线网站| 色综合久久88色综合天天6 | 91国偷自产一区二区三区观看 | 欧美美女bb生活片| 欧美日韩国产经典色站一区二区三区| 色婷婷av一区二区三区gif | 日本一区二区三区电影| 久久精品人人爽人人爽| 中文字幕在线不卡一区二区三区| 国产精品成人免费| 亚洲成人一二三| 久国产精品韩国三级视频| 成人精品亚洲人成在线| 99re66热这里只有精品3直播| 91国偷自产一区二区开放时间 | 免费观看在线综合色| 国产在线精品一区二区不卡了 | 一区视频在线播放| 夜色激情一区二区| 毛片av中文字幕一区二区| 国内精品视频一区二区三区八戒| 久久精工是国产品牌吗| 成人高清视频在线| 欧美三级电影精品| 国产欧美一区视频| 午夜婷婷国产麻豆精品| 国产在线一区观看| 在线观看日韩精品| 久久综合久久综合久久| 亚洲色图制服诱惑| 韩国精品久久久| 欧美中文字幕亚洲一区二区va在线 | 成人黄色在线视频| 91精品国产综合久久小美女| 国产精品久99| 久久av中文字幕片| 欧美性受xxxx黑人xyx性爽| 日韩精品专区在线| 亚洲mv在线观看| 国产成人aaa| 欧美一区二区成人| 亚洲精品老司机| 国产一区二区三区电影在线观看| 91国产精品成人| 国产精品免费看片| 国产夫妻精品视频| 91精品国产一区二区三区香蕉 | 欧美福利视频导航| 亚洲美女在线一区| 成人毛片视频在线观看| 久久婷婷国产综合国色天香| 亚洲乱码国产乱码精品精98午夜| 国产激情视频一区二区三区欧美| 91精品国产乱码久久蜜臀| 亚洲影视在线播放| 99久免费精品视频在线观看| 国产日韩欧美一区二区三区综合| 日一区二区三区| 欧美三级韩国三级日本一级| 亚洲欧美国产毛片在线| 成人av免费在线| 国产精品丝袜黑色高跟| 成人高清av在线| 国产精品久久久久久久久免费樱桃 | 久久嫩草精品久久久精品| 日韩中文字幕区一区有砖一区 | 久久久久国产精品人| 久久精品国产在热久久| 日韩丝袜美女视频| 美女一区二区三区在线观看| 日韩欧美国产综合| 久久激五月天综合精品| 久久―日本道色综合久久| 精品一区二区免费视频| 久久众筹精品私拍模特| 国产成人精品亚洲午夜麻豆| 中文字幕久久午夜不卡| 99热99精品| 亚洲va天堂va国产va久| 制服丝袜av成人在线看| 免费精品视频在线| 国产视频视频一区| 97精品视频在线观看自产线路二| 亚洲免费三区一区二区| 欧美精品在欧美一区二区少妇| 亚洲va天堂va国产va久| 欧美va天堂va视频va在线| 丰满白嫩尤物一区二区| 亚洲美女一区二区三区| 欧美一级免费大片| 国产mv日韩mv欧美| 亚洲在线观看免费| 精品福利av导航| 一本到一区二区三区| 免费观看在线综合| 中文字幕一区二区5566日韩| 欧美精品丝袜中出| 国产高清在线精品| 亚洲成人动漫一区| 国产女同互慰高潮91漫画| 91久久精品一区二区三区| 九色porny丨国产精品| 日韩美女久久久| 日韩小视频在线观看专区| www.欧美亚洲| 全部av―极品视觉盛宴亚洲| 国产精品乱码久久久久久| 欧美一区二区三区视频在线 | 精品福利在线导航| 一本大道久久a久久综合| 久久爱www久久做| 亚洲欧美一区二区三区国产精品| 日韩一区二区免费在线观看| 99re成人在线| 韩国欧美国产一区| 性欧美疯狂xxxxbbbb| 亚洲欧洲精品一区二区三区不卡| 日韩欧美三级在线| 色婷婷亚洲一区二区三区| 国产成人日日夜夜| 蜜桃视频一区二区三区在线观看| 一区二区三区欧美久久| 中文字幕精品一区| 久久综合久久鬼色| 7777精品伊人久久久大香线蕉| 成人性生交大片免费看视频在线| 美女在线一区二区| 日本伊人精品一区二区三区观看方式| 中文字幕在线观看不卡| 国产三级精品三级在线专区| 日韩欧美中文字幕公布| 欧美三级日韩在线| 在线观看免费成人| 一本色道**综合亚洲精品蜜桃冫| 国产风韵犹存在线视精品| 久草中文综合在线| 久久精品99国产国产精| 日韩 欧美一区二区三区| 亚洲电影你懂得| 一区二区不卡在线播放| 亚洲精品成人天堂一二三| 国产精品久久久久久久岛一牛影视| 久久综合久久鬼色| 26uuu国产在线精品一区二区| 欧美一卡二卡在线| 欧美一区二区三区四区视频| 91精品国产色综合久久不卡蜜臀| 欧美日韩免费视频| 欧美一区二区三区婷婷月色| 日韩午夜中文字幕| 欧美精品一区二区三区蜜臀 | 成人av午夜电影| 99精品偷自拍| 在线中文字幕一区| 欧美剧情片在线观看| 欧美一区二区播放| 久久免费的精品国产v∧| 久久久无码精品亚洲日韩按摩| 久久久久久久久97黄色工厂| 国产精品家庭影院| 一区二区三区不卡视频在线观看| 午夜精品一区二区三区电影天堂| 亚洲成精国产精品女| 日本伊人色综合网| 国产河南妇女毛片精品久久久| 成人av手机在线观看| 欧洲中文字幕精品| 日韩精品一区二区三区swag| 久久久蜜桃精品| 亚洲伦在线观看| 奇米精品一区二区三区四区 | 亚洲精品第1页| 丝袜美腿成人在线| 国产精品夜夜嗨| 色偷偷一区二区三区| 911精品国产一区二区在线| 精品国产污污免费网站入口| 国产精品麻豆99久久久久久| 亚洲综合丝袜美腿| 国产一区二区精品久久99| 国产a区久久久| 欧美偷拍一区二区| 久久精品视频在线免费观看| 亚洲午夜久久久久久久久久久| 黄色成人免费在线| 91国产免费观看| 国产女人18毛片水真多成人如厕| 亚洲六月丁香色婷婷综合久久 | 欧美国产乱子伦| 午夜欧美电影在线观看| 成人综合婷婷国产精品久久蜜臀| 3atv在线一区二区三区| 一区二区中文字幕在线| 蜜桃久久久久久|