Exemplo n.º 1
0
 private <T> Class<? extends ClientProxy> getServiceProxy(Class<T> service) {
   ClientExtension clientExtension = client.getClientExtension();
   return clientExtension.getServiceProxy(service);
 }
Exemplo n.º 2
0
 /**
  * Creates a {@code ClientProxyFactory} for the supplied service class. Currently only the {@link
  * MapService} is supported.
  *
  * @param service service for the proxy to create.
  * @return {@code ClientProxyFactory} for the service.
  * @throws java.lang.IllegalArgumentException if service is not known. Currently only the {@link
  *     MapService} is known
  */
 private <T> ClientProxyFactory createServiceProxyFactory(Class<T> service) {
   ClientExtension clientExtension = client.getClientExtension();
   return clientExtension.createServiceProxyFactory(service);
 }