クラス SecurityWebApplicationContextUtils
java.lang.ObjectSE
org.springframework.web.context.support.WebApplicationContextUtils
org.springframework.security.web.context.support.SecurityWebApplicationContextUtils
public abstract class SecurityWebApplicationContextUtils
extends org.springframework.web.context.support.WebApplicationContextUtils
Spring の
WebApplicationContextUtils への Spring Security 拡張。コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明static org.springframework.web.context.WebApplicationContextfindRequiredWebApplicationContext(jakarta.servlet.ServletContext servletContext) この Web アプリの一意のWebApplicationContextを見つけます。ルート Web アプリのコンテキスト(推奨)または登録済みServletContext属性の中で一意のWebApplicationContext(通常、現在の Web アプリケーションの単一のDispatcherServletから取得)。クラス org.springframework.web.context.support.WebApplicationContextUtils から継承されたメソッド
findWebApplicationContext, getRequiredWebApplicationContext, getWebApplicationContext, getWebApplicationContext, initServletPropertySources, initServletPropertySources, registerEnvironmentBeans, registerEnvironmentBeans, registerWebApplicationScopes, registerWebApplicationScopes
コンストラクターの詳細
SecurityWebApplicationContextUtils
public SecurityWebApplicationContextUtils()
メソッドの詳細
findRequiredWebApplicationContext
public static org.springframework.web.context.WebApplicationContext findRequiredWebApplicationContext(jakarta.servlet.ServletContext servletContext) この Web アプリの一意のWebApplicationContextを見つけます。ルート Web アプリのコンテキスト(推奨)または登録済みServletContext属性の中で一意のWebApplicationContext(通常、現在の Web アプリケーションの単一のDispatcherServletから取得)。DispatcherServletのコンテキストの公開は、デフォルトではtrueであるpublishContextプロパティを介して制御できますが、Web アプリで複数のDispatcherServletを登録しても、単一のコンテキストのみを公開するように選択的に切り替えることができます。- パラメーター:
servletContext- ServletContext は、次の Web アプリケーションコンテキストを検索します- 戻り値:
- この Web アプリに必要な WebApplicationContext
- 例外:
IllegalStateExceptionSE- WebApplicationContext が見つからない場合- 関連事項:
WebApplicationContextUtils.getWebApplicationContext(ServletContext)ServletContext.getAttributeNames()