Interface EntityConfigurationProvider

All Known Implementing Classes:
DefaultEntityConfigurationProvider

public interface EntityConfigurationProvider
Provider for creating a new MutableEntityConfiguration for a given type. Default settings will be applied to the configuration.
Since:
2.0.0
Author:
Arne Vandamme
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Class<T> entityType)
    Create a new entity configuration for the given entity type.
    create(String name, Class<? extends T> entityType, boolean registerForClass)
    Create a new entity configuration for the given entity type with the specific name.
  • Method Details

    • create

      <T> MutableEntityConfiguration<T> create(Class<T> entityType)
      Create a new entity configuration for the given entity type. Assumes this is the single configuration for that class and will register the property registry as the main registry for that class.
      Type Parameters:
      T - type
      Parameters:
      entityType - to create the configuration for
      Returns:
      pre-configured entity configuration
    • create

      <T> MutableEntityConfiguration<T> create(String name, Class<? extends T> entityType, boolean registerForClass)
      Create a new entity configuration for the given entity type with the specific name.

      The registerForClass parameter determines if the property registry of the class should be the main registry in the EntityPropertyRegistryProvider. If that is the case, nested properties on this type will be resolved against this configuration. If you're expecting to have only one entity configuration using this entity type, then you most likely want to register this configuration for that type.

      Type Parameters:
      T - type
      Parameters:
      name - of the configuration
      entityType - to create the configuration for
      registerForClass - true if the property registry should be the main registry for that type
      Returns:
      pre-configured entity configuration