|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.env; |
|
|
|
package com.fr.design.env; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
|
|
|
import com.fr.rpc.ExceptionMethod; |
|
|
|
import com.fr.stable.AssistUtils; |
|
|
|
import com.fr.stable.AssistUtils; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.Workspace; |
|
|
|
import com.fr.workspace.Workspace; |
|
|
@ -83,11 +84,11 @@ public class RemoteWorkspace implements Workspace { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public <T> T get(Class<T> type, Method defaultMethod){ |
|
|
|
public <T> T get(Class<T> type, ExceptionMethod exceptionMethod){ |
|
|
|
if(defaultMethod != null) { |
|
|
|
if(exceptionMethod != null) { |
|
|
|
WorkObjectPool objectPool = client.getPool(); |
|
|
|
WorkObjectPool objectPool = client.getPool(); |
|
|
|
if (objectPool instanceof WorkspaceProxyPool) { |
|
|
|
if (objectPool instanceof WorkspaceProxyPool) { |
|
|
|
return ((WorkspaceProxyPool) objectPool).get(type, defaultMethod); |
|
|
|
return ((WorkspaceProxyPool) objectPool).get(type, exceptionMethod); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
return client.getPool().get(type); |
|
|
|
return client.getPool().get(type); |
|
|
|
} |
|
|
|
} |
|
|
|