クラスの使用
org.springframework.expression.spel.support.SimpleEvaluationContext.Builder
org.springframework.expression.spel.support 内の SimpleEvaluationContext.Builder 使用
修飾子と型メソッド説明SimpleEvaluationContext.forPropertyAccessors
(PropertyAccessor... accessors) 指定されたPropertyAccessor
デリゲートのSimpleEvaluationContext
を作成します。通常は、ユースケースに固有のカスタムPropertyAccessor
(たとえばSimpleEvaluationContext.forReadOnlyDataBinding()
DataBindingPropertyAccessor
を介してパブリックプロパティに読み取り専用でアクセスするSimpleEvaluationContext
を作成します。SimpleEvaluationContext.forReadWriteDataBinding()
DataBindingPropertyAccessor
を介してパブリックプロパティへの読み取り / 書き込みアクセス用のSimpleEvaluationContext
を作成します。SimpleEvaluationContext.Builder.withConversionService
(ConversionService conversionService) カスタムConversionService
を登録します。SimpleEvaluationContext.Builder.withInstanceMethods()
インスタンスメソッドの呼び出しのためにDataBindingMethodResolver
を登録します(つまりSimpleEvaluationContext.Builder.withMethodResolvers
(MethodResolver... resolvers) プロパティアクセスとメソッド解決の組み合わせのために、指定されたMethodResolver
デリゲートを登録します。SimpleEvaluationContext.Builder.withRootObject
(ObjectSE rootObject) 解決するデフォルトのルートオブジェクトを指定します。SimpleEvaluationContext.Builder.withTypeConverter
(TypeConverter converter) カスタムTypeConverter
を登録します。SimpleEvaluationContext.Builder.withTypedRootObject
(ObjectSE rootObject, TypeDescriptor typeDescriptor) 解決する型付きルートオブジェクトを指定します。