クラス 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 WebApplicationContextgetWebApplicationContext(ELContextEE elContext) WebApplicationContext参照を取得して公開します。booleanisReadOnly(ELContextEE elContext, ObjectSE base, ObjectSE property) voidsetValue(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 アプリケーションコンテキスト
- 関連事項: