クラス 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 WebApplicationContextgetWebApplicationContext(ELContextEE elContext) Bean 名前解決を委譲する Web アプリケーションコンテキストを取得します。booleanisReadOnly(ELContextEE elContext, ObjectSE base, ObjectSE property) voidsetValue(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) - 関連事項: