public class WebApplicationContextFacesELResolver extends ELResolverEE
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>
SpringBeanFacesELResolver, FacesContextUtils.getWebApplicationContext(javax.faces.context.FacesContext)| 修飾子と型 | フィールドと説明 |
|---|---|
protected Log | logger サブクラスで利用可能なロガー。 |
static java.lang.String | WEB_APPLICATION_CONTEXT_VARIABLE_NAME 公開された WebApplicationContext 変数の名前: "webApplicationContext"。 |
RESOLVABLE_AT_DESIGN_TIMEEE, TYPEEE| コンストラクターと説明 |
|---|
WebApplicationContextFacesELResolver() |
| 修飾子と型 | メソッドと説明 |
|---|---|
java.lang.Class<?> | getCommonPropertyType(ELContextEE elContext, java.lang.Object base) |
java.util.Iterator<java.beans.FeatureDescriptor> | getFeatureDescriptors(ELContextEE elContext, java.lang.Object base) |
java.lang.Class<?> | getType(ELContextEE elContext, java.lang.Object base, java.lang.Object property) |
java.lang.Object | getValue(ELContextEE elContext, java.lang.Object base, java.lang.Object property) |
protected WebApplicationContext | getWebApplicationContext(ELContextEE elContext)WebApplicationContext 参照を取得して公開します。 |
boolean | isReadOnly(ELContextEE elContext, java.lang.Object base, java.lang.Object property) |
void | setValue(ELContextEE elContext, java.lang.Object base, java.lang.Object property, java.lang.Object value) |
convertToTypeEE, invokeEEpublic static final java.lang.String WEB_APPLICATION_CONTEXT_VARIABLE_NAME
protected final Log logger
@Nullable public java.lang.Object getValue(ELContextEE elContext, @Nullable java.lang.Object base, java.lang.Object property) throws ELExceptionEE
ELResolverEE の getValueEE ELExceptionEE@Nullable public java.lang.Class<?> getType(ELContextEE elContext, @Nullable java.lang.Object base, java.lang.Object property) throws ELExceptionEE
ELResolverEE の getTypeEE ELExceptionEEpublic void setValue(ELContextEE elContext, java.lang.Object base, java.lang.Object property, java.lang.Object value) throws ELExceptionEE
ELResolverEE の setValueEE ELExceptionEEpublic boolean isReadOnly(ELContextEE elContext, java.lang.Object base, java.lang.Object property) throws ELExceptionEE
ELResolverEE の isReadOnlyEE ELExceptionEE@Nullable public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContextEE elContext, java.lang.Object base)
ELResolverEE の getFeatureDescriptorsEE public java.lang.Class<?> getCommonPropertyType(ELContextEE elContext, java.lang.Object base)
ELResolverEE の getCommonPropertyTypeEE @Nullable protected WebApplicationContext getWebApplicationContext(ELContextEE elContext)
WebApplicationContext 参照を取得して公開します。 デフォルトの実装は FacesContextUtils に委譲し、WebApplicationContext が見つからない場合は null を返します。
elContext - 現在の JSF ELContextFacesContextUtils.getWebApplicationContext(javax.faces.context.FacesContext)