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