@FunctionalInterface public interface WebModule extends Module
Module.IgnoreModuleException
Modifier and Type | Method and Description |
---|---|
default void |
loadModule(ApiBinder apiBinder)
初始化过程,注意:apiBinder 参数只能在 loadModule 阶段中使用。
如果只要不抛错,后续 onStart/onStop 都会被调用
|
void |
loadModule(WebApiBinder apiBinder) |
default void loadModule(ApiBinder apiBinder) throws Throwable
Module
loadModule
in interface Module
Throwable
- init异常抛出Module.IgnoreModuleException
- 如果抛出该类型异常则表示放弃后续 onStart/onStop 的执行,module 的加载仍然继续void loadModule(WebApiBinder apiBinder) throws Throwable
Throwable
Copyright © 2020. All rights reserved.