forked from alibaba/jvm-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加生命周期适配器让用户选择实现指定生命周期方法;Command和Http路径兼容路径/前缀;添加后置事件,无论方法正常返回还是抛出异常都执行;
- Loading branch information
Showing
6 changed files
with
121 additions
and
25 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
sandbox-api/src/main/java/com/alibaba/jvm/sandbox/api/ModuleLifecycleAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.alibaba.jvm.sandbox.api; | ||
|
||
/** | ||
* 模块生命周期适配器,用于简化接口实现 | ||
* | ||
* @author dadiyang | ||
* @since 2019/4/7 | ||
*/ | ||
public class ModuleLifecycleAdapter implements ModuleLifecycle { | ||
@Override | ||
public void onLoad() throws Throwable { | ||
} | ||
|
||
@Override | ||
public void onUnload() throws Throwable { | ||
|
||
} | ||
|
||
@Override | ||
public void onActive() throws Throwable { | ||
|
||
} | ||
|
||
@Override | ||
public void onFrozen() throws Throwable { | ||
|
||
} | ||
|
||
@Override | ||
public void loadCompleted() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters