| | |
| | | package com.dy.common.mw; |
| | | |
| | | /** |
| | | * 模块单元接口 |
| | | * 单元接口 |
| | | * |
| | | */ |
| | | public interface UnitInterface { |
| | |
| | | * 设置适配器 |
| | | * @throws Exception |
| | | */ |
| | | public void setAdapter(UnitAdapterInterface adapter) throws Exception ; |
| | | void setAdapter(UnitAdapterInterface adapter) throws Exception ; |
| | | /** |
| | | * 启动模块 |
| | | * 启动单元运行 |
| | | * @throws Exception |
| | | */ |
| | | public void start(UnitStartedCallbackInterface callback) throws Exception ; |
| | | void start(UnitCallbackInterface callback) throws Exception ; |
| | | /** |
| | | * 停止模块运行 |
| | | * 停止单元运行 |
| | | * @throws Exception |
| | | */ |
| | | public void stop(UnitStartedCallbackInterface callback) throws Exception ; |
| | | |
| | | void stop(UnitCallbackInterface callback) throws Exception ; |
| | | } |