org.nakedobjects.remoting.client.EncodingOverSocketsProxyInstaller Maven / Gradle / Ivy
package org.nakedobjects.remoting.client;
import java.util.List;
import org.nakedobjects.remoting.protocol.ClientMarshaller;
import org.nakedobjects.remoting.protocol.encoding.EncodingMarshaller;
import org.nakedobjects.remoting.transport.Transport;
import org.nakedobjects.remoting.transport.socket.SocketTransport;
public class EncodingOverSocketsProxyInstaller extends ProxyInstallerAbstract {
public EncodingOverSocketsProxyInstaller() {
super("encoding-sockets");
}
@Override
protected void addConfigurationResources(List configurationResources) {
super.addConfigurationResources(configurationResources);
// TODO: this (small) hack is because we don't load up the Protocol (Marshaller)
// and Transport using the installers.
configurationResources.add("protocol_encoding.properties");
configurationResources.add("transport_sockets.properties");
}
@Override
protected Transport createTransport() {
return new SocketTransport(getConfiguration());
}
@Override
protected ClientMarshaller createMarshaller(Transport transport) {
return new EncodingMarshaller(getConfiguration(), transport);
}
}
// Copyright (c) Naked Objects Group Ltd.