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