Commit a1bda993 by Michael Koch Committed by Michael Koch

2003-03-31 Michael Koch <konqueror@gmx.de>

	* java/rmi/server/LoaderHandler.java
	(loadClass): Deprecated.
	(getSecurityContext): Deprecated.
	* java/rmi/server/LogStream.java
	(getDefaultStream): Deprecated.
	(setDefaultStream): Deprecated.
	(getOutputStream): Deprecated.
	(setOutputStream): Deprecated.
	(write): Deprecated.
	(toString): Deprecated.
	(parseLevel): Deprecated.
	* java/rmi/server/Operation.java
	(Operation): Deprecated.
	(getOperation): Deprecated.
	(toString): Deprecated.
	* java/rmi/server/RemoteCall.java
	(getOutputStream): Deprecated.
	(releaseOutputStream): Deprecated.
	(getInputStream): Deprecated.
	(releaseInputStream): Deprecated.
	(getResultStream): Deprecated.
	(executeCall): Deprecated.
	(done): Deprecated.
	* java/rmi/server/RemoteRef.java
	(invoke): Deprecated.
	(newCall): Deprecated.
	(done): Deprecated.
	* java/rmi/server/RemoteStub.java
	(setRef): Deprecated.
	* java/rmi/server/Skeleton.java:
	No need to import java.lang.Exception explicitly.
	(dispatch): Deprecated.
	(getOperations): Deprecated.

From-SVN: r65079
parent 60c98fd6
2003-03-31 Michael Koch <konqueror@gmx.de> 2003-03-31 Michael Koch <konqueror@gmx.de>
* java/rmi/server/LoaderHandler.java
(loadClass): Deprecated.
(getSecurityContext): Deprecated.
* java/rmi/server/LogStream.java
(getDefaultStream): Deprecated.
(setDefaultStream): Deprecated.
(getOutputStream): Deprecated.
(setOutputStream): Deprecated.
(write): Deprecated.
(toString): Deprecated.
(parseLevel): Deprecated.
* java/rmi/server/Operation.java
(Operation): Deprecated.
(getOperation): Deprecated.
(toString): Deprecated.
* java/rmi/server/RemoteCall.java
(getOutputStream): Deprecated.
(releaseOutputStream): Deprecated.
(getInputStream): Deprecated.
(releaseInputStream): Deprecated.
(getResultStream): Deprecated.
(executeCall): Deprecated.
(done): Deprecated.
* java/rmi/server/RemoteRef.java
(invoke): Deprecated.
(newCall): Deprecated.
(done): Deprecated.
* java/rmi/server/RemoteStub.java
(setRef): Deprecated.
* java/rmi/server/Skeleton.java:
No need to import java.lang.Exception explicitly.
(dispatch): Deprecated.
(getOperations): Deprecated.
2003-03-31 Michael Koch <konqueror@gmx.de>
* java/rmi/dgc/VMID.java, * java/rmi/dgc/VMID.java,
java/rmi/registry/RegistryHandler.java, java/rmi/registry/RegistryHandler.java,
java/rmi/server/LogStream.java, java/rmi/server/LogStream.java,
......
...@@ -47,11 +47,20 @@ public interface LoaderHandler ...@@ -47,11 +47,20 @@ public interface LoaderHandler
{ {
public static final String packagePrefix = ""; public static final String packagePrefix = "";
/**
* @deprecated
*/
public Class loadClass(String name) public Class loadClass(String name)
throws MalformedURLException, ClassNotFoundException; throws MalformedURLException, ClassNotFoundException;
/**
* @deprecated
*/
public Class loadClass(URL codebase, String name) public Class loadClass(URL codebase, String name)
throws MalformedURLException, ClassNotFoundException; throws MalformedURLException, ClassNotFoundException;
/**
* @deprecated
*/
public Object getSecurityContext(ClassLoader loader); public Object getSecurityContext(ClassLoader loader);
} }
...@@ -65,41 +65,65 @@ public class LogStream extends PrintStream ...@@ -65,41 +65,65 @@ public class LogStream extends PrintStream
throw new Error ("Not implemented"); throw new Error ("Not implemented");
} }
/**
* @deprecated
*/
public static PrintStream getDefaultStream () public static PrintStream getDefaultStream ()
{ {
return defStream; return defStream;
} }
/**
* @deprecated
*/
public static void setDefaultStream (PrintStream s) public static void setDefaultStream (PrintStream s)
{ {
defStream = s; defStream = s;
} }
/**
* @deprecated
*/
public OutputStream getOutputStream () public OutputStream getOutputStream ()
{ {
return out; return out;
} }
/**
* @deprecated
*/
public void setOutputStream (OutputStream s) public void setOutputStream (OutputStream s)
{ {
out = s; out = s;
} }
/**
* @deprecated
*/
public void write (int buffer) public void write (int buffer)
{ {
super.write (buffer); super.write (buffer);
} }
/**
* @deprecated
*/
public void write (byte[] buffer, int offset, int len) public void write (byte[] buffer, int offset, int len)
{ {
super.write (buffer, offset, len); super.write (buffer, offset, len);
} }
/**
* @deprecated
*/
public String toString () public String toString ()
{ {
throw new Error ("Not implemented"); throw new Error ("Not implemented");
} }
/**
* @deprecated
*/
public static int parseLevel (String s) public static int parseLevel (String s)
{ {
if (s.equalsIgnoreCase ("silent")) if (s.equalsIgnoreCase ("silent"))
......
...@@ -44,16 +44,25 @@ public class Operation ...@@ -44,16 +44,25 @@ public class Operation
{ {
private String operation; private String operation;
/**
* @deprecated
*/
public Operation (String op) public Operation (String op)
{ {
operation = op; operation = op;
} }
/**
* @deprecated
*/
public String getOperation () public String getOperation ()
{ {
return operation; return operation;
} }
/**
* @deprecated
*/
public String toString () public String toString ()
{ {
return operation; return operation;
......
...@@ -48,18 +48,39 @@ import java.io.StreamCorruptedException; ...@@ -48,18 +48,39 @@ import java.io.StreamCorruptedException;
*/ */
public interface RemoteCall public interface RemoteCall
{ {
/**
* @deprecated
*/
public ObjectOutput getOutputStream () throws IOException; public ObjectOutput getOutputStream () throws IOException;
/**
* @deprecated
*/
public void releaseOutputStream () throws IOException; public void releaseOutputStream () throws IOException;
/**
* @deprecated
*/
public ObjectInput getInputStream () throws IOException; public ObjectInput getInputStream () throws IOException;
/**
* @deprecated
*/
public void releaseInputStream () throws IOException; public void releaseInputStream () throws IOException;
/**
* @deprecated
*/
public ObjectOutput getResultStream (boolean success) public ObjectOutput getResultStream (boolean success)
throws IOException, StreamCorruptedException; throws IOException, StreamCorruptedException;
/**
* @deprecated
*/
public void executeCall () throws Exception; public void executeCall () throws Exception;
/**
* @deprecated
*/
public void done () throws IOException; public void done () throws IOException;
} }
...@@ -49,15 +49,24 @@ public interface RemoteRef extends Externalizable ...@@ -49,15 +49,24 @@ public interface RemoteRef extends Externalizable
public static final String packagePrefix = "gnu.java.rmi.server"; public static final String packagePrefix = "gnu.java.rmi.server";
/**
* @deprecated
*/
public void invoke(RemoteCall call) throws Exception; public void invoke(RemoteCall call) throws Exception;
public Object invoke (Remote obj, Method method, Object[] params, long opnum) public Object invoke (Remote obj, Method method, Object[] params, long opnum)
throws Exception; throws Exception;
/**
* @deprecated
*/
public RemoteCall newCall (RemoteObject obj, Operation[] op, int opnum, public RemoteCall newCall (RemoteObject obj, Operation[] op, int opnum,
long hash) long hash)
throws RemoteException; throws RemoteException;
/**
* @deprecated
*/
public void done (RemoteCall call) throws RemoteException; public void done (RemoteCall call) throws RemoteException;
public boolean remoteEquals (RemoteRef ref); public boolean remoteEquals (RemoteRef ref);
......
...@@ -51,6 +51,9 @@ public abstract class RemoteStub extends RemoteObject ...@@ -51,6 +51,9 @@ public abstract class RemoteStub extends RemoteObject
super (ref); super (ref);
} }
/**
* @deprecated
*/
protected static void setRef (RemoteStub stub, RemoteRef ref) protected static void setRef (RemoteStub stub, RemoteRef ref)
{ {
stub.ref = ref; stub.ref = ref;
......
...@@ -38,7 +38,6 @@ exception statement from your version. */ ...@@ -38,7 +38,6 @@ exception statement from your version. */
package java.rmi.server; package java.rmi.server;
import java.rmi.Remote; import java.rmi.Remote;
import java.lang.Exception;
import java.rmi.server.RemoteCall; import java.rmi.server.RemoteCall;
/** /**
...@@ -46,8 +45,14 @@ import java.rmi.server.RemoteCall; ...@@ -46,8 +45,14 @@ import java.rmi.server.RemoteCall;
*/ */
public interface Skeleton public interface Skeleton
{ {
/**
* @deprecated
*/
public void dispatch (Remote obj, RemoteCall theCall, int opnum, long hash) public void dispatch (Remote obj, RemoteCall theCall, int opnum, long hash)
throws Exception; throws Exception;
/**
* @deprecated
*/
public Operation[] getOperations(); public Operation[] getOperations();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment