Class Aggregations

java.lang.Object
io.jmix.flowui.data.aggregation.Aggregations

@Component("flowui_Aggregations") public class Aggregations extends Object
Class that is responsible for registering and managing aggregation strategies for various data types. It provides mechanisms for retrieving the appropriate aggregation logic based on the Java class type.
  • Field Details

  • Constructor Details

    • Aggregations

      public Aggregations()
  • Method Details

    • setDatatypeRegistry

      @Autowired public void setDatatypeRegistry(DatatypeRegistry datatypeRegistry)
    • get

      @Nullable public <T> Aggregation<T> get(Class<T> clazz)
      Returns the aggregation strategy associated with the specified Java class type.
      Type Parameters:
      T - the type of the aggregation result
      Parameters:
      clazz - the class type for which the aggregation strategy is requested
      Returns:
      the aggregation strategy for the specified class type, or null if no mapping exists
    • registerDatatypes

      protected void registerDatatypes()
    • register

      protected <T> void register(Datatype<?> datatype, Aggregation<T> aggregation)