Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
41b048f1
Commit
41b048f1
authored
Apr 03, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plugin插件服务端基类代码编写与修改
parent
036a966d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
PluginServer.java
...pc-server/src/main/java/com/byit/server/PluginServer.java
+19
-0
No files found.
byit-plugin-core/myth-plugin-rpc-server/src/main/java/com/byit/server/PluginServer.java
View file @
41b048f1
package
com
.
byit
.
server
;
import
com.byit.factory.PluginServerFactory
;
import
com.byit.param.PluginCallback
;
/**
...
...
@@ -27,6 +28,15 @@ public abstract class PluginServer {
this
.
stopPluginCallback
=
stopPluginCallback
;
}
/**
* 启动方法 该方法用于启动对应的服务器 必须回调onStart方法
* @param pluginServerFactory 插件服务工厂
*/
public
abstract
void
start
(
PluginServerFactory
pluginServerFactory
);
/**
* 回调插件的启动方法
*/
public
void
onStart
(){
if
(
startPluginCallback
!=
null
){
try
{
...
...
@@ -36,6 +46,15 @@ public abstract class PluginServer {
}
}
}
/**
* 服务的停止方法 必须回调onStop方法
*/
public
abstract
void
stop
();
/**
* 回调插件的停止方法
*/
public
void
onStop
(){
if
(
stopPluginCallback
!=
null
){
if
(
stopPluginCallback
!=
null
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment