Class AcrossContextConfiguration

java.lang.Object
com.foreach.across.config.AcrossContextConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportAware, org.springframework.context.EnvironmentAware

@Configuration @Import(AcrossContextWebConfiguration.class) public class AcrossContextConfiguration extends Object implements org.springframework.context.annotation.ImportAware, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanClassLoaderAware

Creates an AcrossContext bean and will apply all AcrossContextConfigurer instances before bootstrapping. Depending on the settings imported from EnableAcrossContext, modules will be auto-configured and further configuration of the context delegated to the configurer beans.

A single DataSource bean or one named acrossDataSource is required for installers to work.

  • Constructor Details

    • AcrossContextConfiguration

      public AcrossContextConfiguration()
  • Method Details

    • setImportMetadata

      public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
      Specified by:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface org.springframework.context.EnvironmentAware
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • acrossContext

      @Bean @DependsOnDatabaseInitialization public AcrossContext acrossContext(org.springframework.context.ConfigurableApplicationContext applicationContext, @Qualifier("acrossDataSource") Optional<DataSource> acrossDataSource, @Qualifier("acrossInstallerDataSource") Optional<DataSource> installerDataSource)
    • forwardApplicationEvent

      @Order(-2147483648) @EventListener public void forwardApplicationEvent(org.springframework.context.ApplicationEvent event)
    • sharedMetadataReaderFactory

      @Bean("com.foreach.across.core.context.sharedMetadataReaderFactory") public org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory sharedMetadataReaderFactory()
    • moduleDependencyResolver

      @Bean @Lazy public ModuleDependencyResolver moduleDependencyResolver(org.springframework.context.ApplicationContext applicationContext)