public class SpringBeanFacesELResolver extends ELResolverEE
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>
WebApplicationContextFacesELResolver, FacesContextUtils.getRequiredWebApplicationContext(javax.faces.context.FacesContext)RESOLVABLE_AT_DESIGN_TIMEEE, TYPEEE| コンストラクターと説明 |
|---|
SpringBeanFacesELResolver() |
| 修飾子と型 | メソッドと説明 |
|---|---|
ClassSE<?> | getCommonPropertyType(ELContextEE elContext, ObjectSE base) |
IteratorSE<FeatureDescriptorSE> | getFeatureDescriptors(ELContextEE elContext, ObjectSE base) |
ClassSE<?> | getType(ELContextEE elContext, ObjectSE base, ObjectSE property) |
ObjectSE | 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) |
convertToTypeEE, invokeEEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE@Nullable public ObjectSE getValue(ELContextEE elContext, @Nullable ObjectSE base, ObjectSE property) throws ELExceptionEE
ELResolverEE の getValueEE ELExceptionEE@Nullable public ClassSE<?> getType(ELContextEE elContext, @Nullable ObjectSE base, ObjectSE property) throws ELExceptionEE
ELResolverEE の getTypeEE ELExceptionEEpublic void setValue(ELContextEE elContext, @Nullable ObjectSE base, ObjectSE property, ObjectSE value) throws ELExceptionEE
ELResolverEE の setValueEE ELExceptionEEpublic boolean isReadOnly(ELContextEE elContext, @Nullable ObjectSE base, ObjectSE property) throws ELExceptionEE
ELResolverEE の isReadOnlyEE ELExceptionEE@Nullable public IteratorSE<FeatureDescriptorSE> getFeatureDescriptors(ELContextEE elContext, @Nullable ObjectSE base)
ELResolverEE の getFeatureDescriptorsEE public ClassSE<?> getCommonPropertyType(ELContextEE elContext, @Nullable ObjectSE base)
ELResolverEE の getCommonPropertyTypeEE protected WebApplicationContext getWebApplicationContext(ELContextEE elContext)
デフォルトの実装は FacesContextUtils に委譲します。
elContext - 現在の JSF ELContextnull)FacesContextUtils.getRequiredWebApplicationContext(javax.faces.context.FacesContext)