Changeset 39 for trunk/objectmq/src/omq/common
- Timestamp:
- 06/14/13 15:11:13 (11 years ago)
- Location:
- trunk/objectmq/src/omq/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/objectmq/src/omq/common/broker/Broker.java
r38 r39 108 108 } 109 109 110 public static Remote lookup(String reference, Class<?> contract) throws RemoteException { 110 @SuppressWarnings("unchecked") 111 public static <T extends Remote> T lookup(String reference, Class<T> contract) throws RemoteException { 111 112 try { 112 113 Properties environment = Environment.getEnvironment(); … … 120 121 Proxymq proxy = new Proxymq(reference, contract, environment); 121 122 Class<?>[] array = { contract }; 122 return ( Remote) Proxymq.newProxyInstance(contract.getClassLoader(), array, proxy);123 } 124 return ( Remote) Proxymq.getInstance(reference);123 return (T) Proxymq.newProxyInstance(contract.getClassLoader(), array, proxy); 124 } 125 return (T) Proxymq.getInstance(reference); 125 126 126 127 } catch (Exception e) { -
trunk/objectmq/src/omq/common/util/Serializers/GsonImp.java
r38 r39 39 39 40 40 try { 41 JsonArray jsonArgs = (JsonArray) jsonObj.get(" arguments");41 JsonArray jsonArgs = (JsonArray) jsonObj.get("params"); 42 42 43 43 // TODO: if (jsonArgs.size() == types.size())
Note: See TracChangeset
for help on using the changeset viewer.