Introduce ReflectiveIndexAccessor
convenience class in SpEL
#32714
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Overview
Somewhat analogous to the
ReflectivePropertyAccessor
implementation ofPropertyAccessor
, we should introduce a general purposeReflectiveIndexAccessor
implementation as a convenience for users.However,
ReflectiveIndexAccessor
should implementCompilableIndexAccessor
(instead of justIndexAccessor
) in order to provide built-in compilation support.A proof of concept has already been implemented in the tests for
CompilableIndexAccessor
:spring-framework/spring-expression/src/test/java/org/springframework/expression/spel/SpelCompilationCoverageTests.java
Lines 7238 to 7333 in 27d2200
Related Issues
IndexAccessor
SPI to customize the SpELIndexer
#26478CompilableIndexAccessor
SPI in SpEL #32613The text was updated successfully, but these errors were encountered: