Package cn.mapway.ui.client.mvc
Interface ModuleFactory
-
- All Known Implementing Classes:
Temp
public interface ModuleFactory表明某个类是可以动态生成的.- Author:
- zhangjianshe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IModulecreateModule(String moduleCode, boolean single)根据代码实例化模块.ModuleInfofindModuleInfo(String moduleCode)根据模块代码找到模块信息ModuleInfofindModuleInfoByHash(String hash)根据模块哈希找到模块信息List<ModuleInfo>getModules()获取系统中的所有可用模块.List<ModuleInfo>getRootModules()返回根模块列表ModuleInforegisterComponent(ModuleInfo moduleInfo)注册一个Java组件
-
-
-
Method Detail
-
createModule
IModule createModule(String moduleCode, boolean single)
根据代码实例化模块.- Parameters:
moduleCode- the module codesingle- the single- Returns:
- the i frame module
-
getModules
List<ModuleInfo> getModules()
获取系统中的所有可用模块.- Returns:
- the modules
-
getRootModules
List<ModuleInfo> getRootModules()
返回根模块列表- Returns:
-
findModuleInfo
ModuleInfo findModuleInfo(String moduleCode)
根据模块代码找到模块信息- Parameters:
moduleCode- the module code- Returns:
- module info
-
findModuleInfoByHash
ModuleInfo findModuleInfoByHash(String hash)
根据模块哈希找到模块信息- Parameters:
hash- the hash- Returns:
- module info
-
registerComponent
ModuleInfo registerComponent(ModuleInfo moduleInfo)
注册一个Java组件- Parameters:
moduleInfo-- Returns:
-
-