Interface EvaluationContextExtension
- All Superinterfaces:
ExtensionIdAware
SPI to allow adding a set of properties and function definitions accessible via the root of an
EvaluationContext
provided by an ExtensionAwareEvaluationContextProvider
.
Extensions can be ordered by following Spring's Ordered
conventions.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the functions exposed by the extension.Return the properties exposed by the extension.default Object
Return the root object to be exposed by the extension.Methods inherited from interface org.springframework.data.spel.spi.ExtensionIdAware
getExtensionId
-
Method Details
-
getProperties
Return the properties exposed by the extension.- Returns:
- the properties
-
getFunctions
Return the functions exposed by the extension.- Returns:
- the functions
-
getRootObject
Return the root object to be exposed by the extension. It's strongly recommended to declare the most concrete type possible as return type of the implementation method. This will allow us to obtain the necessary metadata once and not for every evaluation.- Returns:
- the root object to be exposed by the extension.
-