クラス SpringBeanFacesELResolver
java.lang.ObjectSE
jakarta.el.ELResolver
org.springframework.web.jsf.el.SpringBeanFacesELResolver
Spring ルート
WebApplicationContext
に委譲する JSF ELResolver
。Spring 定義の Bean への名前参照を解決します。 次のように、faces-config.xml
ファイルでこのリゾルバーを構成します。
<application> ... <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> </application>すべての JSF 式は、たとえば JSF 管理の Bean のプロパティ値で、Spring 管理のサービスレイヤー Bean の名前を暗黙的に参照できます。
<managed-bean> <managed-bean-name>myJsfManagedBean</managed-bean-name> <managed-bean-class>example.MyJsfManagedBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>mySpringManagedBusinessObject</property-name> <value>#{mySpringManagedBusinessObject}</value> </managed-property> </managed-bean>applicationContext.xml で "mySpringManagedBusinessObject" が Spring Bean として定義されています。
<bean id="mySpringManagedBusinessObject" class="example.MySpringManagedBusinessObject"> ... </bean>
- 導入:
- 2.5
- 作成者:
- Juergen Hoeller
- 関連事項:
フィールドのサマリー
クラス 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) Bean 名前解決を委譲する Web アプリケーションコンテキストを取得します。boolean
isReadOnly
(ELContextEE elContext, ObjectSE base, ObjectSE property) void
setValue
(ELContextEE elContext, ObjectSE base, ObjectSE property, ObjectSE value) クラス jakarta.el.ELResolverEE から継承されたメソッド
convertToTypeEE, invokeEE
コンストラクターの詳細
SpringBeanFacesELResolver
public SpringBeanFacesELResolver()
メソッドの詳細
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, @Nullable ObjectSE base, ObjectSE property, ObjectSE value) throws ELExceptionEE - 次で指定:
- クラス
ELResolverEE
のsetValueEE
- 例外:
ELExceptionEE
isReadOnly
public boolean isReadOnly(ELContextEE elContext, @Nullable ObjectSE base, ObjectSE property) throws ELExceptionEE - 次で指定:
- クラス
ELResolverEE
のisReadOnlyEE
- 例外:
ELExceptionEE
getFeatureDescriptors
@Nullable public IteratorSE<FeatureDescriptorSE> getFeatureDescriptors(ELContextEE elContext, @Nullable ObjectSE base) - 次で指定:
- クラス
ELResolverEE
のgetFeatureDescriptorsEE
getCommonPropertyType
- 次で指定:
- クラス
ELResolverEE
のgetCommonPropertyTypeEE
getWebApplicationContext
Bean 名前解決を委譲する Web アプリケーションコンテキストを取得します。デフォルトの実装は FacesContextUtils に委譲します。
- パラメーター:
elContext
- 現在の JSF ELContext- 戻り値:
- Spring Web アプリケーションコンテキスト (非
null
) - 関連事項: