Class ModuleEntityRegistration

java.lang.Object
com.foreach.across.modules.entity.registrars.ModuleEntityRegistration

@Component public class ModuleEntityRegistration extends Object
Takes care of running all registered EntityRegistrar instances when a module has bootstrapped, and afterwards applying the EntityConfigurer instances from the module.

A registrar automatically creates an EntityConfiguration, whereas an EntityConfigurer provides a builders that can be used to modify existing configurations.

Author:
Arne Vandamme
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModuleEntityRegistration(com.foreach.across.core.context.info.AcrossContextInfo contextInfo, MutableEntityRegistry entityRegistry, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory, com.foreach.across.core.context.info.AcrossModuleInfo currentModule)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contextBootstrapped(com.foreach.across.core.events.AcrossContextBootstrappedEvent contextBootstrappedEvent)
     
    void
    moduleBootstrapped(com.foreach.across.core.events.AcrossModuleBootstrappedEvent moduleBootstrappedEvent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModuleEntityRegistration

      public ModuleEntityRegistration(com.foreach.across.core.context.info.AcrossContextInfo contextInfo, MutableEntityRegistry entityRegistry, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory, com.foreach.across.core.context.info.AcrossModuleInfo currentModule)
  • Method Details

    • moduleBootstrapped

      @EventListener public void moduleBootstrapped(com.foreach.across.core.events.AcrossModuleBootstrappedEvent moduleBootstrappedEvent)
    • contextBootstrapped

      @EventListener public void contextBootstrapped(com.foreach.across.core.events.AcrossContextBootstrappedEvent contextBootstrappedEvent)