io.sterodium.rmi.protocol.client.RemoteNavigator Maven / Gradle / Ivy
package io.sterodium.rmi.protocol.client;
/**
* @author Mihails Volkovs [email protected]
* Date: 23/09/2015
*/
public class RemoteNavigator {
private final RemoteObjectProxyFactory proxyFactory;
public RemoteNavigator(String host, int port, String path) {
RestClient restClient = new RestClient(host, port, path);
this.proxyFactory = new RemoteObjectProxyFactory(new RemoteInvoker(restClient));
}
public T createProxy(Class clazz, String objectId) {
return proxyFactory.create(clazz, objectId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy