クラス WebApplicationContextFacesELResolver
java.lang.ObjectSE
jakarta.el.ELResolver
org.springframework.web.jsf.el.WebApplicationContextFacesELResolver
public class WebApplicationContextFacesELResolver
extends jakarta.el.ELResolver
"webApplicationContext" という名前の変数に Spring
WebApplicationContext インスタンスを公開する特別な JSF ELResolver。SpringBeanFacesELResolver とは対照的に、この ELResolver バリアントは、JSF 変数名を Spring Bean 名として解決しません。代わりに、Spring のルート WebApplicationContext 自体を特別な名前で公開し、そのアプリケーションコンテキスト内の Spring 定義の Bean への "webApplicationContext.mySpringManagedBusinessObject" 逆参照を解決できます。
次のように、faces-config.xml ファイルでこのリゾルバーを構成します。
<application> ... <el-resolver>org.springframework.web.jsf.el.WebApplicationContextFacesELResolver</el-resolver> </application>
- 導入:
- 2.5
- 作成者:
- Juergen Hoeller
- 関連事項:
フィールドのサマリー
フィールド修飾子と型フィールド説明protected final org.apache.commons.logging.Logサブクラスで利用可能なロガー。static final StringSE公開された WebApplicationContext 変数の名前: "webApplicationContext"。コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明ClassSE<?> getCommonPropertyType(jakarta.el.ELContext elContext, ObjectSE base) protected @Nullable WebApplicationContextgetWebApplicationContext(jakarta.el.ELContext elContext) WebApplicationContext参照を取得して公開します。booleanisReadOnly(jakarta.el.ELContext elContext, ObjectSE base, ObjectSE property) voidクラス jakarta.el.ELResolver から継承されたメソッド
convertToType, invoke
フィールドの詳細
WEB_APPLICATION_CONTEXT_VARIABLE_NAME
公開された WebApplicationContext 変数の名前: "webApplicationContext"。- 関連事項:
logger
protected final org.apache.commons.logging.Log loggerサブクラスで利用可能なロガー。
コンストラクターの詳細
WebApplicationContextFacesELResolver
public WebApplicationContextFacesELResolver()
メソッドの詳細
getValue
getType
setValue
isReadOnly
getCommonPropertyType
getWebApplicationContext
WebApplicationContext参照を取得して公開します。デフォルトの実装は
FacesContextUtilsに委譲し、WebApplicationContextが見つからない場合はnullを返します。- パラメーター:
elContext- 現在の JSF ELContext- 戻り値:
- Spring Web アプリケーションコンテキスト
- 関連事項: