クラス JsfManagedBeanPropertyAccessor

java.lang.ObjectSE
org.springframework.faces.webflow.JsfManagedBeanPropertyAccessor
実装されたすべてのインターフェース:
org.springframework.expression.PropertyAccessor

public class JsfManagedBeanPropertyAccessor extends ObjectSE implements org.springframework.expression.PropertyAccessor

既存の JSF 管理 Bean のリクエスト、セッション、アプリケーションスコープをチェックする Spring EL PropertyAccessor。これにより、従来の JSF 管理 Bean (faces-config.xml で定義) をフロー定義の式を通じて解決できるようになります。

推奨されるアプローチは、代わりに Spring を使用してこのような Bean を構成することですが、これは既存の JSF アーティファクトを持つユーザーの移行を容易にするためのものです。このリゾルバーは一時的な FacesContext に委譲し、Bean が JSF によってまだ初期化されていない場合は、JSF によって管理される Bean 初期化がトリガーされます。

ソースコードは JsfManagedBeanResolver から改変しました。

導入:
2.1
作成者:
Jeremy Grelle, Rossen Stoyanchev
  • コンストラクターの詳細

    • JsfManagedBeanPropertyAccessor

      public JsfManagedBeanPropertyAccessor()
  • メソッドの詳細

    • getSpecificTargetClasses

      public ClassSE<?>[] getSpecificTargetClasses()
      次で指定:
      インターフェース org.springframework.expression.PropertyAccessorgetSpecificTargetClasses 
    • canRead

      public boolean canRead(org.springframework.expression.EvaluationContext context, ObjectSE target, StringSE name)
      次で指定:
      インターフェース org.springframework.expression.PropertyAccessorcanRead 
    • read

      public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, ObjectSE target, StringSE name)
      次で指定:
      インターフェース org.springframework.expression.PropertyAccessorread 
    • canWrite

      public boolean canWrite(org.springframework.expression.EvaluationContext context, ObjectSE target, StringSE name)
      次で指定:
      インターフェース org.springframework.expression.PropertyAccessorcanWrite 
    • write

      public void write(org.springframework.expression.EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue)
      次で指定:
      インターフェース org.springframework.expression.PropertyAccessorwrite