|
|
|
@ -12,7 +12,7 @@ import com.fr.workspace.Workspace;
|
|
|
|
|
import com.fr.workspace.connect.WorkspaceClient; |
|
|
|
|
import com.fr.workspace.connect.WorkspaceConnection; |
|
|
|
|
import com.fr.workspace.connect.WorkspaceConnectionInfo; |
|
|
|
|
import com.fr.workspace.engine.rpc.WorkspaceProxyPool; |
|
|
|
|
import com.fr.workspace.engine.client.FineWorkspaceStubPool; |
|
|
|
|
import com.fr.workspace.pool.WorkObjectPool; |
|
|
|
|
import com.fr.workspace.server.authority.decision.DecisionOperator; |
|
|
|
|
|
|
|
|
@ -125,8 +125,8 @@ public class RemoteWorkspace implements Workspace {
|
|
|
|
|
public <T> T get(Class<T> type, ExceptionHandler exceptionHandler){ |
|
|
|
|
if(exceptionHandler != null) { |
|
|
|
|
WorkObjectPool objectPool = client.getPool(); |
|
|
|
|
if (objectPool instanceof WorkspaceProxyPool) { |
|
|
|
|
return ((WorkspaceProxyPool) objectPool).get(type, exceptionHandler); |
|
|
|
|
if (objectPool instanceof FineWorkspaceStubPool) { |
|
|
|
|
return objectPool.get(type, exceptionHandler); |
|
|
|
|
}else { |
|
|
|
|
return client.getPool().get(type); |
|
|
|
|
} |
|
|
|
|