public class Console extends Object implements net.isger.util.Manageable
| 构造器和说明 |
|---|
Console() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAirfone(Airfone airfone)
添加传音
|
void |
addCommand(String name,
Class<? extends Command> type)
添加命令
|
void |
addDependencies(String name,
List<Object> dependencies) |
void |
addDependencies(String name,
Object... dependencies) |
void |
addModule(String name,
Module module,
List<Object> dependencies)
添加模块
|
void |
addModule(String name,
Module module,
Object... dependencies)
添加模块
|
void |
addProber(Prober prober)
添加探测器
|
void |
destroy()
注销
|
void |
execute(Command command)
控制台执行入口
|
Container |
getContainer()
获取容器
|
Module |
getModule()
获取模块
|
Module |
getModule(BaseCommand command)
获取模块
|
Module |
getModule(Class<?> commandType)
获取模块
|
Module |
getModule(String name)
获取模块
|
String |
getModuleName(BaseCommand command)
获取模块名
|
String |
getModuleName(Class<?> type)
获取模块名
|
Map<String,Module> |
getModules()
获取模块
|
boolean |
hasReady()
准备就绪
|
void |
initial()
初始
|
protected void |
loadApp()
加载应用
|
protected void |
loadConfig(Collection<?> res)
加载配置
|
protected void |
loadConfig(Map<String,Object> res)
加载配置
|
protected void |
loadConstants(Collection<?> res)
加载常量
|
protected void |
loadConstants(Map<String,Object> config)
加载常量
|
protected void |
loadKernel()
加载内核
|
protected void |
loadKernel(String name)
加载内核
|
protected void |
loadModule(Collection<?> res)
加载模块
|
protected void |
loadModule(Map<String,Object> res)
加载模块
|
Object |
loadResource(String res)
加载资源
|
void |
remove(Airfone airfone)
移除传音
|
protected void |
setupModule(String name,
Module module)
安装模块
|
protected void |
setupModule(String name,
Module module,
Class<? extends Command> commandClass,
Object... dependencies)
安装模块
|
public final void initial()
initial 在接口中 net.isger.util.Manageableprotected void loadKernel()
protected final void setupModule(String name, Module module, Class<? extends Command> commandClass, Object... dependencies)
name - module - commandClass - dependencies - protected final void loadKernel(String name)
name - protected final void loadConstants(Collection<?> res)
res - protected final void loadModule(Collection<?> res)
res - protected void loadApp()
protected final void loadConfig(Collection<?> res)
res - public final boolean hasReady()
public final Container getContainer()
public final Module getModule()
public final Module getModule(BaseCommand command)
command - public final String getModuleName(BaseCommand command)
command - public final void addProber(Prober prober)
prober - public final void addModule(String name, Module module, Object... dependencies)
name - module - dependencies - public final void addModule(String name, Module module, List<Object> dependencies)
name - module - dependencies - public final void addCommand(String name, Class<? extends Command> type)
name - type - public void addAirfone(Airfone airfone)
airfone - public void remove(Airfone airfone)
airfone - public final void execute(Command command)
command - public final void destroy()
destroy 在接口中 net.isger.util.ManageableCopyright © 2024. All rights reserved.