DefaultOptions resolver does not create a new CL
- This will make sure the options metadata classes are loaded from the jars provided in the current classloader instead of a new ParentLastURLClassLoader created in XD.
This commit is contained in:
committed by
Mark Fisher
parent
6ab7c566ad
commit
71e53321dc
@@ -105,7 +105,9 @@ public class ModuleOptionsPropertySourceInitializer implements
|
||||
@Bean
|
||||
// TODO: allow override of this
|
||||
public DefaultModuleOptionsMetadataResolver defaultResolver() {
|
||||
return new DefaultModuleOptionsMetadataResolver();
|
||||
DefaultModuleOptionsMetadataResolver defaultResolver = new DefaultModuleOptionsMetadataResolver();
|
||||
defaultResolver.setShouldCreateModuleClassLoader(false);
|
||||
return defaultResolver;
|
||||
}
|
||||
|
||||
@ConditionalOnExpression("'${xd.module.config.location:${xd.config.home:}}'!=''")
|
||||
|
||||
Reference in New Issue
Block a user