@@ -47,15 +47,18 @@ public interface EvaluationContext {
47
47
48
48
/**
49
49
* Return the default root context object against which unqualified
50
- * properties/ methods/ etc should be resolved. This can be overridden
51
- * when evaluating an expression.
50
+ * properties, methods, etc. should be resolved.
51
+ * <p>This can be overridden when evaluating an expression.
52
52
*/
53
53
TypedValue getRootObject ();
54
54
55
55
/**
56
56
* Return a list of accessors that will be asked in turn to read/write a property.
57
+ * <p>The default implementation returns an empty list.
57
58
*/
58
- List <PropertyAccessor > getPropertyAccessors ();
59
+ default List <PropertyAccessor > getPropertyAccessors () {
60
+ return Collections .emptyList ();
61
+ }
59
62
60
63
/**
61
64
* Return a list of index accessors that will be asked in turn to access or
@@ -69,13 +72,19 @@ default List<IndexAccessor> getIndexAccessors() {
69
72
70
73
/**
71
74
* Return a list of resolvers that will be asked in turn to locate a constructor.
75
+ * <p>The default implementation returns an empty list.
72
76
*/
73
- List <ConstructorResolver > getConstructorResolvers ();
77
+ default List <ConstructorResolver > getConstructorResolvers () {
78
+ return Collections .emptyList ();
79
+ }
74
80
75
81
/**
76
82
* Return a list of resolvers that will be asked in turn to locate a method.
83
+ * <p>The default implementation returns an empty list.
77
84
*/
78
- List <MethodResolver > getMethodResolvers ();
85
+ default List <MethodResolver > getMethodResolvers () {
86
+ return Collections .emptyList ();
87
+ }
79
88
80
89
/**
81
90
* Return a bean resolver that can look up beans by name.
0 commit comments