public class ModuleLoaderImpl extends Object implements ModuleLoader, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
ModuleLoaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Module |
load(ModuleConfig moduleConfig)
根据配置加载一个模块,创建一个新的ClassLoadr加载jar里的class,初始化Spring ApplicationContext等
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
unload(Module module)
卸载一个模块
|
public Module load(ModuleConfig moduleConfig)
ModuleLoaderload in interface ModuleLoadermoduleConfig - 模块配置信息public void unload(Module module)
ModuleLoaderunload in interface ModuleLoaderpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2018 Alibaba Group. All rights reserved.