Interface DynamicCalculatedAttributeEvaluator

All Known Implementing Classes:
SpelDynamicCalculatedAttributeEvaluator

@NullMarked public interface DynamicCalculatedAttributeEvaluator
Evaluates a calculated dynamic attribute.

Implementations are selected by getName() from the dynamic model definition or from the default calculated-attribute evaluator setting.

  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Object
    Evaluates a calculated dynamic attribute for the entity and property described by the context.
    Returns the unique evaluator name used in dynamic model definitions.
  • Method Details

    • getName

      String getName()
      Returns the unique evaluator name used in dynamic model definitions.
      Returns:
      evaluator name
    • evaluate

      Evaluates a calculated dynamic attribute for the entity and property described by the context.
      Parameters:
      context - evaluation context
      Returns:
      calculated value, or null