インターフェースの使用
org.springframework.expression.PropertyAccessor
PropertyAccessor を使用するパッケージ
パッケージ
説明
Spring アプリケーションコンテキスト内の式解析サポート。
Spring Expression Language の背後にあるコア抽象化。
SpEL の中央実装パッケージ。
さまざまなコア抽象化のための SpEL のデフォルト実装。
org.springframework.context.expression 内の PropertyAccessor 使用
PropertyAccessor を実装している org.springframework.context.expression のクラス修飾子と型クラス説明classSpringBeanExpressionContextの Bean およびコンテキストオブジェクトにアクセスする方法を認識している SpELPropertyAccessor。classSpringBeanFactoryの Bean にアクセスする方法を知っている SpELPropertyAccessor。classSpringEnvironmentインスタンスのプロパティを取得する方法を認識する読み取り専用 SpELPropertyAccessor。class標準のMapSE のキーにアクセスする方法を知っている SpELPropertyAccessor。org.springframework.expression 内の PropertyAccessor 使用
型 PropertyAccessor の引数を持つ型を返す org.springframework.expression のメソッド修飾子と型メソッド説明default ListSE<PropertyAccessor>EvaluationContext.getPropertyAccessors()プロパティの読み取り / 書き込みを順番に要求されるアクセサーのリストを返します。org.springframework.expression.spel 内の PropertyAccessor 使用
org.springframework.expression.spel 内の PropertyAccessor サブインターフェース修飾子と型インターフェース説明interfaceコンパイル可能なPropertyAccessorは、アクセス操作を表すバイトコードを生成できるため、アクセサーを使用する式のバイトコードへのコンパイルが容易になります。型 PropertyAccessor の引数を持つ型を返す org.springframework.expression.spel のメソッドorg.springframework.expression.spel.support 内の PropertyAccessor 使用
修飾子と型クラス説明final classデータバインディングを目的としたPropertyAccessorバリアント。リフレクションを使用して、読み取りおよび場合によっては書き込み用のプロパティにアクセスします。classリフレクションを使用して、ターゲットインスタンスでの読み取りおよび場合によっては書き込みのプロパティにアクセスする強力なPropertyAccessor。修飾子と型メソッド説明ReflectivePropertyAccessor.createOptimalAccessor(EvaluationContext context, ObjectSE target, StringSE name) 特定のクラスの特定の名前のプロパティに合わせて最適化されたプロパティアクセサーを作成しようとします。型 PropertyAccessor の引数を持つ型を返す org.springframework.expression.spel.support のメソッド修飾子と型メソッド説明SimpleEvaluationContext.getPropertyAccessors()指定されたPropertyAccessorデリゲートがある場合はそれを返します。StandardEvaluationContext.getPropertyAccessors()型 PropertyAccessor のパラメーターを持つ org.springframework.expression.spel.support のメソッド修飾子と型メソッド説明voidStandardEvaluationContext.addPropertyAccessor(PropertyAccessor accessor) SimpleEvaluationContext.forPropertyAccessors(PropertyAccessor... accessors) 指定されたPropertyAccessorデリゲートのSimpleEvaluationContextを作成します。通常は、ユースケースに固有のカスタムPropertyAccessorです (たとえば、カスタムデータ構造の属性解決用)。プロパティの逆参照も必要な場合は、DataBindingPropertyAccessorと組み合わせられる可能性があります。booleanStandardEvaluationContext.removePropertyAccessor(PropertyAccessor accessor) 型 PropertyAccessor の型引数を持つ org.springframework.expression.spel.support のメソッドパラメーター修飾子と型メソッド説明voidStandardEvaluationContext.setPropertyAccessors(ListSE<PropertyAccessor> propertyAccessors)