クラス 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.WebApplicationContext
findRequiredWebApplicationContext
(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()