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

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

?? staticportletapplicationcontext.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.portlet.context;

import javax.portlet.PortletConfig;
import javax.portlet.PortletContext;
import javax.servlet.ServletContext;

import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.StaticApplicationContext;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.ServletContextAwareProcessor;

/**
 * Static Portlet-based {@link org.springframework.context.ApplicationContext}
 * implementation for testing. Not intended for use in production applications.
 *
 * <p>Implements the
 * {@link org.springframework.web.portlet.context.ConfigurablePortletApplicationContext}
 * interface to allow for direct replacement of an {@link XmlPortletApplicationContext},
 * despite not actually supporting external configuration files.
 *
 * <p>Interprets resource paths as portlet context resources, that is, as paths
 * beneath the portlet application root. Absolute paths, for example for files
 * outside the portlet app root, can be accessed via "file:" URLs, as implemented
 * by {@link org.springframework.core.io.DefaultResourceLoader}.
 *
 * @author Juergen Hoeller
 * @author Mark Fisher
 * @since 2.0
 */
public class StaticPortletApplicationContext extends StaticApplicationContext
		implements ConfigurablePortletApplicationContext {

	private ServletContext servletContext;
	
	private PortletContext portletContext;

	private PortletConfig portletConfig;

	private String namespace;


	public StaticPortletApplicationContext() {
		setDisplayName("Root Portlet ApplicationContext");
	}


	public void setParent(ApplicationContext parent) {
		super.setParent(parent);
		if (parent instanceof WebApplicationContext) {
			this.servletContext = ((WebApplicationContext) parent).getServletContext();
		}
	}

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

	public void setPortletContext(PortletContext portletContext) {
		this.portletContext = portletContext;
	}

	public PortletContext getPortletContext() {
		return this.portletContext;
	}

	public void setPortletConfig(PortletConfig portletConfig) {
		this.portletConfig = portletConfig;
		if (portletConfig != null && this.portletContext == null) {
			this.portletContext = portletConfig.getPortletContext();
		}
	}

	public PortletConfig getPortletConfig() {
		return this.portletConfig;
	}

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

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

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

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

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


	/**
	 * Register request/session scopes, a {@link PortletContextAwareProcessor}, etc.
	 */
	protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
		beanFactory.addBeanPostProcessor(new ServletContextAwareProcessor(this.servletContext));
		beanFactory.addBeanPostProcessor(new PortletContextAwareProcessor(this.portletContext, this.portletConfig));
		beanFactory.ignoreDependencyInterface(PortletContextAware.class);
		beanFactory.ignoreDependencyInterface(PortletConfigAware.class);
		beanFactory.registerResolvableDependency(ServletContext.class, this.servletContext);
		beanFactory.registerResolvableDependency(PortletContext.class, this.portletContext);
		beanFactory.registerResolvableDependency(PortletConfig.class, this.portletConfig);

		PortletApplicationContextUtils.registerPortletApplicationScopes(beanFactory);
	}

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

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

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产乱码久久久久久图片| 婷婷综合另类小说色区| 成人黄色国产精品网站大全在线免费观看| 日韩美女主播在线视频一区二区三区| 久久 天天综合| 国产亚洲成aⅴ人片在线观看| 福利视频网站一区二区三区| 国产精品免费av| 色网综合在线观看| 成人一区二区三区视频| 亚洲男人的天堂在线观看| 国产成人在线观看免费网站| 欧美国产精品劲爆| 色婷婷精品大在线视频| 五月天激情综合| 欧美电影影音先锋| 精品一区二区三区免费观看 | av一二三不卡影片| 亚洲免费资源在线播放| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 午夜伦理一区二区| www久久久久| 99久久久精品| 五月天久久比比资源色| 久久久久一区二区三区四区| 亚洲电影一级片| 精品精品欲导航| 不卡av电影在线播放| 性欧美疯狂xxxxbbbb| 精品国内二区三区| 91丨九色丨黑人外教| 日本欧美加勒比视频| 中文字幕精品一区二区精品绿巨人| 91免费看片在线观看| 久久这里只有精品6| 免费久久99精品国产| 国产精品嫩草99a| 欧美人xxxx| 国产99久久久国产精品| 亚洲超丰满肉感bbw| 国产日韩欧美制服另类| 欧美私模裸体表演在线观看| 国产一区二区日韩精品| 亚洲国产日日夜夜| 久久久久久久久岛国免费| 在线观看视频一区二区欧美日韩| 麻豆精品久久精品色综合| 中文字幕一区在线| 欧美不卡激情三级在线观看| 一本大道久久精品懂色aⅴ| 激情综合网天天干| 亚洲在线中文字幕| 国产欧美日本一区视频| 91精品中文字幕一区二区三区| 成人午夜免费av| 美国三级日本三级久久99| 欧美一区二区三区在线观看视频| 成人aa视频在线观看| 美腿丝袜亚洲色图| 一级日本不卡的影视| 国产欧美日韩综合精品一区二区| 91精品国模一区二区三区| 91在线国产福利| 国产在线精品国自产拍免费| 亚洲成人激情社区| 欧美影视一区二区三区| 亚洲成人精品影院| 亚洲女与黑人做爰| 欧美极品美女视频| 欧美v亚洲v综合ⅴ国产v| 在线观看日韩国产| aaa欧美色吧激情视频| 国产在线精品免费| 久久成人av少妇免费| 亚洲成av人影院在线观看网| 亚洲人亚洲人成电影网站色| 国产日产欧美一区| 精品久久人人做人人爱| 欧美精品国产精品| 欧美影视一区在线| 91麻豆免费在线观看| 成人精品在线视频观看| 国产一区不卡在线| 久久国产婷婷国产香蕉| 日韩中文字幕91| 亚洲电影在线播放| 一区二区理论电影在线观看| 成人欧美一区二区三区1314| 日本亚洲最大的色成网站www| 亚洲视频一二三| 亚洲国产精品激情在线观看 | 精品美女在线观看| 91精品国产综合久久久蜜臀粉嫩 | 精品av久久707| 欧美老女人第四色| 欧美日韩一级大片网址| 欧洲一区二区av| 色偷偷久久人人79超碰人人澡| 成人va在线观看| 成人午夜碰碰视频| www.日韩av| eeuss影院一区二区三区| 盗摄精品av一区二区三区| 国产成人自拍网| 国产成人精品一区二| 国产美女一区二区三区| 国产精品自拍在线| 国产高清久久久| 高清在线观看日韩| 成人激情小说网站| 91在线丨porny丨国产| 色综合天天性综合| 欧美性xxxxx极品少妇| 一本色道久久综合精品竹菊| 色综合久久六月婷婷中文字幕| 青娱乐精品视频在线| 日本美女视频一区二区| 麻豆成人在线观看| 国产做a爰片久久毛片| 国模套图日韩精品一区二区 | 久久99精品一区二区三区三区| 老司机午夜精品| 国产在线不卡一卡二卡三卡四卡| 国产sm精品调教视频网站| 久久久久久夜精品精品免费| 亚洲精品一区二区三区福利| 国产亚洲精品中文字幕| 国产精品嫩草99a| 亚洲精品综合在线| 亚洲第一福利一区| 免费看欧美女人艹b| 国产精品亚洲人在线观看| 成人午夜免费av| 欧美在线观看视频一区二区| 欧美精品电影在线播放| 精品福利av导航| 国产精品水嫩水嫩| 蜜臀久久99精品久久久久宅男| 亚洲h动漫在线| 人人狠狠综合久久亚洲| 国产在线播精品第三| 成人av网站免费观看| 91精品1区2区| 欧美一区2区视频在线观看| 久久久久亚洲综合| 一区二区三区高清在线| 日韩国产高清在线| 国产伦精品一区二区三区免费| 91丨九色porny丨蝌蚪| 在线电影院国产精品| 久久亚洲精华国产精华液| 中文字幕一区av| 国产精品美女久久久久av爽李琼| 一区二区三区鲁丝不卡| 麻豆久久一区二区| 成人精品免费视频| 欧美日韩国产三级| 久久久一区二区三区| 亚洲黄色免费电影| 九九**精品视频免费播放| www.欧美日韩国产在线| 美女网站色91| 日韩激情视频网站| 成人免费看黄yyy456| 欧美日韩视频在线第一区 | 色999日韩国产欧美一区二区| 中文字幕日韩欧美一区二区三区| a级高清视频欧美日韩| 欧美另类高清zo欧美| 久久精品亚洲精品国产欧美kt∨| 亚洲欧美视频一区| 久久99精品视频| 色婷婷精品大视频在线蜜桃视频| 日韩色视频在线观看| 亚洲欧洲99久久| 久久丁香综合五月国产三级网站| www..com久久爱| 日韩色在线观看| 亚洲靠逼com| 国产高清在线精品| 欧美精品乱码久久久久久 | 99国产一区二区三精品乱码| 91精品蜜臀在线一区尤物| 亚洲免费av观看| 国产乱子轮精品视频| 欧美日韩国产一区二区三区地区| 中文字幕在线观看一区| 久久99精品国产.久久久久 | 欧美另类videos死尸| 亚洲精品福利视频网站| 欧美日韩成人一区| 欧美变态tickle挠乳网站| 亚洲精品高清在线观看| 粉嫩av一区二区三区在线播放| 7878成人国产在线观看| 亚洲精品国产品国语在线app| 韩国精品久久久| 欧美四级电影网| 亚洲日本一区二区| 国产夫妻精品视频|