|
|
|
@ -11,6 +11,7 @@ import com.fanruan.workplace.conetxt.CompatiblePool;
|
|
|
|
|
import com.fanruan.workplace.http.HttpConstants; |
|
|
|
|
import com.fanruan.workplace.http.RepositoryManager; |
|
|
|
|
import com.fanruan.workplace.http.WorkspaceHeartBeatShell; |
|
|
|
|
import com.fanruan.workplace.http.exception.DefaultRemoteExceptionHandler; |
|
|
|
|
import com.fr.report.UnLockedHandler; |
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignLoginLockHandler; |
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDesignNoAuthHandler; |
|
|
|
@ -50,6 +51,7 @@ import com.fr.workspace.engine.base.FineObjectPool;
|
|
|
|
|
import com.fr.workspace.engine.client.heartbeart.FineWorkspaceHeartbeat; |
|
|
|
|
import com.fr.workspace.engine.client.heartbeart.WorkspaceHeartbeat; |
|
|
|
|
import com.fr.workspace.engine.exception.RemoteDriverUnExistHandler; |
|
|
|
|
import com.fr.workspace.engine.exception.RemoteProcedureErrorHandler; |
|
|
|
|
import com.fr.workspace.engine.resource.FineWorkResource; |
|
|
|
|
import com.fr.workspace.engine.resource.FineWorkResourceAdaptor; |
|
|
|
|
import com.fr.workspace.pool.WorkRPCRegister; |
|
|
|
@ -81,6 +83,7 @@ import com.fr.workspace.server.repository.widget.ShareRepository;
|
|
|
|
|
public class DesignWorkContextComponent { |
|
|
|
|
|
|
|
|
|
private static final String VERSION_NUM = "01"; |
|
|
|
|
private static final String ERROR_CODE = "11300024"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -155,6 +158,7 @@ public class DesignWorkContextComponent {
|
|
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.LOGIN_LOCK, new RemoteDesignLoginLockHandler()); |
|
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.TPL_HAS_BEAN_UNLOCK, new UnLockedHandler()); |
|
|
|
|
RemoteExceptionConvert.registerException(HttpConstants.DRIVER_NOT_EXIST, new RemoteDriverUnExistHandler()); |
|
|
|
|
DefaultRemoteExceptionHandler.getInstance().registerMatchMsg(ERROR_CODE, new RemoteProcedureErrorHandler()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void supplementalCommon() { |
|
|
|
|