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 StringSE | WEB_APPLICATION_CONTEXT_VARIABLE_NAME 公開された WebApplicationContext 変数の名前: "webApplicationContext"。 |
RESOLVABLE_AT_DESIGN_TIMEEE, TYPEEE
コンストラクターと説明 |
---|
WebApplicationContextFacesELResolver() |
修飾子と型 | メソッドと説明 |
---|---|
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) WebApplicationContext 参照を取得して公開します。 |
boolean | isReadOnly(ELContextEE elContext, ObjectSE base, ObjectSE property) |
void | setValue(ELContextEE elContext, ObjectSE base, ObjectSE property, ObjectSE value) |
convertToTypeEE, invokeEE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static final StringSE WEB_APPLICATION_CONTEXT_VARIABLE_NAME
protected final Log logger
@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
ELExceptionEE
public void setValue(ELContextEE elContext, ObjectSE base, ObjectSE property, ObjectSE value) throws ELExceptionEE
ELResolverEE
の setValueEE
ELExceptionEE
public boolean isReadOnly(ELContextEE elContext, ObjectSE base, ObjectSE property) throws ELExceptionEE
ELResolverEE
の isReadOnlyEE
ELExceptionEE
@Nullable public IteratorSE<FeatureDescriptorSE> getFeatureDescriptors(ELContextEE elContext, ObjectSE base)
ELResolverEE
の getFeatureDescriptorsEE
public ClassSE<?> getCommonPropertyType(ELContextEE elContext, ObjectSE base)
ELResolverEE
の getCommonPropertyTypeEE
@Nullable protected WebApplicationContext getWebApplicationContext(ELContextEE elContext)
WebApplicationContext
参照を取得して公開します。 デフォルトの実装は FacesContextUtils
に委譲し、WebApplicationContext
が見つからない場合は null
を返します。
elContext
- 現在の JSF ELContextFacesContextUtils.getWebApplicationContext(javax.faces.context.FacesContext)