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
ExtensionAwareQueryMethodEvaluationContextProvider
.
Extensions can be ordered by following Spring's Ordered
conventions.
- Since:
- 1.9
- Author:
- Thomas Darimont, Oliver Gierke
- See Also:
-
Ordered
Order
-
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.
-