クラス WebApplicationContextFacesELResolver
java.lang.ObjectSE
jakarta.el.ELResolver
org.springframework.web.jsf.el.WebApplicationContextFacesELResolver
"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 Log
サブクラスで利用可能なロガー。static final StringSE
公開された WebApplicationContext 変数の名前: "webApplicationContext"。クラス jakarta.el.ELResolverEE から継承されたフィールド
RESOLVABLE_AT_DESIGN_TIMEEE, TYPEEE
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明ClassSE<?>
getCommonPropertyType
(ELContextEE elContext, ObjectSE base) getFeatureDescriptors
(ELContextEE elContext, ObjectSE base) ClassSE<?>
getType
(ELContextEE elContext, ObjectSE base, ObjectSE property) getValue
(ELContextEE elContext, ObjectSE base, ObjectSE property) protected WebApplicationContext
getWebApplicationContext
(ELContextEE elContext) WebApplicationContext
参照を取得して公開します。boolean
isReadOnly
(ELContextEE elContext, ObjectSE base, ObjectSE property) void
setValue
(ELContextEE elContext, ObjectSE base, ObjectSE property, ObjectSE value) クラス jakarta.el.ELResolverEE から継承されたメソッド
convertToTypeEE, invokeEE
フィールドの詳細
WEB_APPLICATION_CONTEXT_VARIABLE_NAME
公開された WebApplicationContext 変数の名前: "webApplicationContext"。- 関連事項:
logger
サブクラスで利用可能なロガー。
コンストラクターの詳細
WebApplicationContextFacesELResolver
public WebApplicationContextFacesELResolver()
メソッドの詳細
getValue
@Nullable public ObjectSE getValue(ELContextEE elContext, @Nullable ObjectSE base, ObjectSE property) throws ELExceptionEE - 次で指定:
- クラス
ELResolverEE
のgetValueEE
- 例外:
ELExceptionEE
getType
@Nullable public ClassSE<?> getType(ELContextEE elContext, @Nullable ObjectSE base, ObjectSE property) throws ELExceptionEE - 次で指定:
- クラス
ELResolverEE
のgetTypeEE
- 例外:
ELExceptionEE
setValue
public void setValue(ELContextEE elContext, ObjectSE base, ObjectSE property, ObjectSE value) throws ELExceptionEE - 次で指定:
- クラス
ELResolverEE
のsetValueEE
- 例外:
ELExceptionEE
isReadOnly
public boolean isReadOnly(ELContextEE elContext, ObjectSE base, ObjectSE property) throws ELExceptionEE - 次で指定:
- クラス
ELResolverEE
のisReadOnlyEE
- 例外:
ELExceptionEE
getFeatureDescriptors
@Nullable public IteratorSE<FeatureDescriptorSE> getFeatureDescriptors(ELContextEE elContext, ObjectSE base) - 次で指定:
- クラス
ELResolverEE
のgetFeatureDescriptorsEE
getCommonPropertyType
- 次で指定:
- クラス
ELResolverEE
のgetCommonPropertyTypeEE
getWebApplicationContext
WebApplicationContext
参照を取得して公開します。デフォルトの実装は
FacesContextUtils
に委譲し、WebApplicationContext
が見つからない場合はnull
を返します。- パラメーター:
elContext
- 現在の JSF ELContext- 戻り値:
- Spring Web アプリケーションコンテキスト
- 関連事項: