r459 - in testStandaloneRmi/src/main/java/org/nuiton/sandbox: business rmi
Author: athimel Date: 2011-01-12 10:52:53 +0100 (Wed, 12 Jan 2011) New Revision: 459 Url: http://nuiton.org/repositories/revision/sandbox/459 Log: Format code / organize imports Modified: testStandaloneRmi/src/main/java/org/nuiton/sandbox/business/ServiceImpl.java testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/RemoteProxyFactory.java testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/ServiceExporter.java Modified: testStandaloneRmi/src/main/java/org/nuiton/sandbox/business/ServiceImpl.java =================================================================== --- testStandaloneRmi/src/main/java/org/nuiton/sandbox/business/ServiceImpl.java 2011-01-12 09:38:21 UTC (rev 458) +++ testStandaloneRmi/src/main/java/org/nuiton/sandbox/business/ServiceImpl.java 2011-01-12 09:52:53 UTC (rev 459) @@ -5,7 +5,7 @@ */ public class ServiceImpl implements ServiceInterface { - protected static final int number = (int)(Math.random() * 100); + protected static final int number = (int) (Math.random() * 100); @Override public String testExchange(String whoIsCalling, Integer intValue) { Modified: testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/RemoteProxyFactory.java =================================================================== --- testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/RemoteProxyFactory.java 2011-01-12 09:38:21 UTC (rev 458) +++ testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/RemoteProxyFactory.java 2011-01-12 09:52:53 UTC (rev 459) @@ -3,7 +3,6 @@ import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; -import java.rmi.Remote; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; @@ -23,7 +22,7 @@ protected static <T> T createProxy(String rmiName, final Class<T> serviceInterface) throws Exception { Registry registry = LocateRegistry.getRegistry("10.1.1.85", PORT); - final RemoteMethodExecutor stub = (RemoteMethodExecutor)registry.lookup(rmiName); + final RemoteMethodExecutor stub = (RemoteMethodExecutor) registry.lookup(rmiName); InvocationHandler handler = new InvocationHandler() { @Override Modified: testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/ServiceExporter.java =================================================================== --- testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/ServiceExporter.java 2011-01-12 09:38:21 UTC (rev 458) +++ testStandaloneRmi/src/main/java/org/nuiton/sandbox/rmi/ServiceExporter.java 2011-01-12 09:52:53 UTC (rev 459) @@ -1,12 +1,5 @@ package org.nuiton.sandbox.rmi; -import org.nuiton.sandbox.business.ServiceImpl; -import org.nuiton.sandbox.business.ServiceInterface; -import sun.security.jca.ServiceId; - -import java.lang.reflect.InvocationHandler; -import java.lang.reflect.Method; -import java.lang.reflect.Proxy; import java.rmi.ConnectException; import java.rmi.Remote; import java.rmi.RemoteException;
participants (1)
-
athimelï¼ users.nuiton.org