Class EntityRegistryConfigurer

java.lang.Object
com.foreach.across.modules.entity.config.builders.EntityRegistryConfigurer

public class EntityRegistryConfigurer extends Object
Class for applying a set of EntityConfigurer instances to an EntityRegistry. Allows specifying the AutowireCapableBeanFactory that should be used per configurer.

All configurers will be applied in adding order.

Since:
4.0.0
Author:
Arne Vandamme
See Also:
  • Constructor Details

    • EntityRegistryConfigurer

      public EntityRegistryConfigurer(org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory)
  • Method Details

    • add

      public EntityRegistryConfigurer add(@NonNull @NonNull EntityConfigurer configurer)
      Add a configurer that should be applied.
      Parameters:
      configurer - to apply
      Returns:
      current configurer
    • applyTo

      public EntityRegistryConfigurer applyTo(MutableEntityRegistry entityRegistry)
      Applies the set of configurers to the registry passed in.
      Parameters:
      entityRegistry - to apply the configurers to
      Returns:
      current configurer