Package com.foreach.across.config
Class AcrossDynamicModulesConfiguration
java.lang.Object
com.foreach.across.config.AcrossDynamicModulesConfigurer
com.foreach.across.config.AcrossDynamicModulesConfiguration
- All Implemented Interfaces:
AcrossContextConfigurer
,org.springframework.beans.factory.Aware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.ApplicationContextAware
@Configuration
public class AcrossDynamicModulesConfiguration
extends AcrossDynamicModulesConfigurer
implements org.springframework.context.annotation.ImportAware, org.springframework.context.ApplicationContextAware
Configuration that automatically adds a
AcrossDynamicModulesConfigurer
that uses the importing class
as a base for the dynamic modules. And uses the shared MetadataReaderFactory
if it is available (bean named SharedMetadataReaderFactory.BEAN_NAME
).- Since:
- 1.1.2
- Author:
- Arne Vandamme
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) static void
verifyNoConflictingComponentScans
(org.springframework.core.type.AnnotationMetadata importMetadata, String basePackage) Methods inherited from class com.foreach.across.config.AcrossDynamicModulesConfigurer
configure, getBasePackage, setApplicationClass, setBaseModuleName, setBasePackage, setMetadataReaderFactory, setResourcePatternResolver
-
Constructor Details
-
AcrossDynamicModulesConfiguration
public AcrossDynamicModulesConfiguration()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-
verifyNoConflictingComponentScans
public static void verifyNoConflictingComponentScans(org.springframework.core.type.AnnotationMetadata importMetadata, String basePackage)
-