예제 #1
0
 @Override
 @Deprecated
 public <T extends DistributedObject> T getDistributedObject(String serviceName, Object id) {
   if (id instanceof String) {
     return (T) proxyManager.getProxy(serviceName, (String) id);
   }
   throw new IllegalArgumentException("'id' must be type of String!");
 }
예제 #2
0
 @Override
 public <T extends DistributedObject> T getDistributedObject(String serviceName, String name) {
   return (T) proxyManager.getProxy(serviceName, name);
 }