Class ReflectivePropertyAccessor.OptimalPropertyAccessor

java.lang.Object
org.springframework.expression.spel.support.ReflectivePropertyAccessor.OptimalPropertyAccessor
All Implemented Interfaces:
Opcodes, PropertyAccessor, CompilablePropertyAccessor
Enclosing class:
ReflectivePropertyAccessor

public static class ReflectivePropertyAccessor.OptimalPropertyAccessor extends Object implements CompilablePropertyAccessor
An optimized form of a PropertyAccessor that will use reflection but only knows how to access a particular property on a particular class. This is unlike the general ReflectivePropertyResolver which manages a cache of methods/fields that may be invoked to access different properties on different classes. This optimal accessor exists because looking up the appropriate reflective object by class/name on each read is not cheap.