You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/05/16 15:52:07 UTC

svn commit: r406944 [28/30] - in /incubator/harmony/enhanced/classlib/trunk/modules/rmi2: ./ build/ doc/ doc/testing/ doc/testing/rmi http tunneling/ doc/testing/rmi http tunneling/Results - ITC/ doc/testing/rmi http tunneling/Results - SUN/ doc/testin...

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/SpecRefTaglet.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/SpecRefTaglet.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/SpecRefTaglet.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/SpecRefTaglet.java Tue May 16 06:51:00 2006
@@ -0,0 +1,181 @@
+package doctools;
+
+import com.sun.tools.doclets.Taglet;
+import com.sun.javadoc.*;
+
+import java.util.Map;
+
+/**
+ * A sample Taglet representing @todo. This tag can be used in any kind of
+ * {@link com.sun.javadoc.Doc}.  It is not an inline tag. The text is displayed
+ * in yellow to remind the developer to perform a task.  For
+ * example, "@todo Fix this!" would be shown as:
+ * <DL>
+ * <DT>
+ * <B>To Do:</B>
+ * <DD><table cellpadding=2 cellspacing=0><tr><td bgcolor="yellow">Fix this!
+ * </td></tr></table></DD>
+ * </DL>
+ *
+ * @author Jamie Ho
+ * @author Diego Raúl Mercado (bug fixes)
+ * @since 1.4
+ */
+
+public class SpecRefTaglet implements Taglet {
+    
+    private static final String NAME = "ar.org.fitc.spec_ref";
+    private static final String HEADER = "Spec reference:";
+    private static final String BASE_URL = "http://java.sun.com/j2se/1.5.0/docs/api/";
+    
+    /**
+     * Return the name of this custom tag.
+     */
+    public String getName() {
+        return NAME;
+    }
+    
+    /**
+     * Will return false since <code>@ar.org.fitc.spec_ref</code>
+     * can not be used in field documentation.
+     * @return false since <code>@ar.org.fitc.spec_ref</code>
+     * can not be used in field documentation.
+     */
+    public boolean inField() {
+        return true;
+    }
+
+    /**
+     * Will return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in constructor documentation.
+     * @return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in constructor documentation and false
+     * otherwise.
+     */
+    public boolean inConstructor() {
+        return true;
+    }
+    
+    /**
+     * Will return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in method documentation.
+     * @return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in method documentation and false
+     * otherwise.
+     */
+    public boolean inMethod() {
+        return true;
+    }
+    
+    /**
+     * Will return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in method documentation.
+     * @return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in overview documentation and false
+     * otherwise.
+     */
+    public boolean inOverview() {
+        return true;
+    }
+
+    /**
+     * Will return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in package documentation.
+     * @return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in package documentation and false
+     * otherwise.
+     */
+    public boolean inPackage() {
+        return true;
+    }
+
+    /**
+     * Will return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in type documentation (classes or interfaces).
+     * @return true since <code>@ar.org.fitc.spec_ref</code>
+     * can be used in type documentation and false
+     * otherwise.
+     */
+    public boolean inType() {
+        return true;
+    }
+    
+    /**
+     * Will return false since <code>@ar.org.fitc.spec_ref</code>
+     * is not an inline tag.
+     * @return false since <code>@ar.org.fitc.spec_ref</code>
+     * is not an inline tag.
+     */
+    
+    public boolean isInlineTag() {
+        return false;
+    }
+    
+    /**
+     * Register this Taglet.
+     * @param tagletMap  the map to register this tag to.
+     */
+    public static void register(Map tagletMap) {
+       SpecRefTaglet tag = new SpecRefTaglet();
+       Taglet t = (Taglet) tagletMap.get(tag.getName());
+       if (t != null) {
+           tagletMap.remove(tag.getName());
+       }
+       tagletMap.put(tag.getName(), tag);
+    }
+
+    /**
+     * Given the <code>Tag</code> representation of this custom
+     * tag, return its string representation.
+     * @param tag   the <code>Tag</code> representation of this custom tag.
+     */
+    public String toString(Tag tag) {
+        Doc holder = tag.holder(); 
+        String holderString = holder.toString(); 
+        String holderName = holder.name(); 
+        String url = BASE_URL;
+
+        if (holder.isField()) {
+            url += holderString.substring(0,holderString.lastIndexOf(".")).replace(".", "/") 
+            + ".html#" + holderString.substring(holderString.lastIndexOf(".") + 1);
+        } else if (holder.isClass()) {
+            //BUG FIXED: FOR NESTED CLASSES
+            if (holder.name().contains(".")) { 
+                url += holderString.substring(0, holderString.lastIndexOf(holderName)).
+                        replace('.', '/') + holderName + ".html";
+            } else {
+                url += holderString.replace('.','/') + ".html";    
+            }
+        } else if (holder.isMethod() || holder.isConstructor()){
+            int i = holderString.indexOf(holderName+"(");
+            url += holderString.substring(0,i-1).replace('.','/') 
+            + (holder.isConstructor() ? "/" + holderName : "") +".html#" + holderString.substring(i);
+        } 
+        
+        String ret = String.format("<DT><B>%s</B><DD>"
+                + "<table cellpadding=2 cellspacing=0><tr><td>"
+                + "See corresponding <a href=\"%s\">J2SE API specification reference</a>"
+                + "</td></tr></table></DD>\n"
+                , HEADER, url);
+        
+        if (tag.text()!= null && tag.text().length() > 0)
+            ret += String.format("<DT><B>%s</B><DD>"
+               + "<table cellpadding=2 cellspacing=0><tr><td>%s</td></tr></table></DD>\n",
+               "Clarification:", tag.text());       
+        return ret;
+    }
+    
+    /**
+     * Given an array of <code>Tag</code>s representing this custom
+     * tag, return its string representation.
+     * @param tags  the array of <code>Tag</code>s representing of this custom tag.
+     */
+    public String toString(Tag[] tags) {
+        if (tags.length == 0) {
+            return null;
+        }
+        return toString(tags[0]);
+    }
+}
+
+

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/SpecRefTaglet.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/UrlTaglet.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/UrlTaglet.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/UrlTaglet.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/UrlTaglet.java Tue May 16 06:51:00 2006
@@ -0,0 +1,67 @@
+package doctools;
+
+import java.util.Map;
+import com.sun.javadoc.Tag;
+import com.sun.tools.doclets.Taglet;
+
+public class UrlTaglet implements Taglet {
+	public static final String NAME = "ar.org.fitc.url";
+
+	public boolean inField() {
+		return false;
+	}
+
+	public boolean inConstructor() {
+		return false;
+	}
+
+	public boolean inMethod() {
+		return false;
+	}
+
+	public boolean inOverview() {
+		return false;
+	}
+
+	public boolean inPackage() {
+		return false;
+	}
+
+	public boolean inType() {
+		return false;
+	}
+
+	public boolean isInlineTag() {
+		return true;
+	}
+
+	public String getName() {
+		return NAME;
+	}
+
+	public String toString(Tag tag) {
+		String url = tag.text().contains("://") ? tag.text() : "http://" + tag.text();
+		String[] components = url.split("\\s+",2);
+		if (components.length == 1)
+			return String.format("&lt;<a href=%s>%s</a>&gt;",url,url);
+		if (components[1].startsWith("\"") && components[1].endsWith("\""))
+			return String.format("\"<a href=%s>%s</a>\"",components[0],components[1].substring(1,components[1].length()-1));
+		else
+			return String.format("<a href=%s>%s</a>",components[0],components[1]);			
+	}
+
+	public String toString(Tag[] tags) {
+		return null;
+	}
+    
+	public static void register(Map tagletMap) {
+        UrlTaglet tag = new UrlTaglet();
+        Taglet t = (Taglet) tagletMap.get(tag.getName());
+        if (t != null) {
+            tagletMap.remove(tag.getName());
+        }
+        tagletMap.put(tag.getName(), tag);
+     }
+
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/doctools/UrlTaglet.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AccessException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AccessException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AccessException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AccessException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class AccessException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 6314925228044966088L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public AccessException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public AccessException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AccessException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AlreadyBoundException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AlreadyBoundException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AlreadyBoundException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AlreadyBoundException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class AlreadyBoundException extends Exception {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 9218657361741657110L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public AlreadyBoundException() {
+        super();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public AlreadyBoundException(String s) {
+        super(s);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/AlreadyBoundException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ConnectException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 4863550261346652506L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ConnectException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ConnectException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectIOException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectIOException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectIOException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectIOException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ConnectIOException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -8087809532704668744L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ConnectIOException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ConnectIOException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ConnectIOException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class MarshalException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 6223554758134037936L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public MarshalException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public MarshalException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalledObject.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalledObject.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalledObject.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalledObject.java Tue May 16 06:51:00 2006
@@ -0,0 +1,63 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+import java.io.IOException;
+import java.io.Serializable;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public final class MarshalledObject implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 8988374069173025854L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public MarshalledObject(Object obj) throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public int hashCode() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public boolean equals(Object obj) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public Object get() throws IOException, ClassNotFoundException {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/MarshalledObject.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Naming.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Naming.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Naming.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Naming.java Tue May 16 06:51:00 2006
@@ -0,0 +1,176 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.rmi.registry.Registry;
+import java.rmi.registry.LocateRegistry;
+import java.net.URI;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ * This class contains static methods which have the same names as 
+ * methods were defined in the Registry Interface. It handles a 
+ * String in an URL format (without the scheme component). The URL 
+ * is parsed and the host/port information is forwarded to 
+ * LocateRegistry. Naming uses the stub returned by LocateRegistry 
+ * to invoke the correct method on the registry. 
+ *
+ * @author Marcelo Arcidiacono
+ */
+public class Naming  {
+	
+	/**
+	 * @ar.org.fitc.spec_ref
+	 *
+	 */
+    public static String[] list(String name) throws RemoteException, 
+    		MalformedURLException {
+    	
+    	URI uri = nameParseURI(name);
+    	Registry reg = getRegistry(uri);
+    	String[] result = new String[reg.list().length];
+    	for(int i = 0; i < reg.list().length; i++) {
+    		result[i] = "//" + uri.getHost() + ":" + uri.getPort() 
+    				  + "/" + reg.list()[i];
+    	}
+    	return result;
+    }
+
+    /**
+	 * @ar.org.fitc.spec_ref
+	 *
+	 */
+    public static Remote lookup(String name) throws NotBoundException, 
+    		MalformedURLException, RemoteException {
+    	Remote rem;
+    	
+    	URI uri = nameParseURI(name);
+    	Registry reg = getRegistry(uri);
+    	try {
+    		rem = reg.lookup(uri.getPath().substring(1));
+    	} catch(NotBoundException nbe){
+    		throw new NotBoundException("The key " + name + " is not currently bound.");
+    	}
+    	return rem;
+    }
+
+    /**
+	 * @ar.org.fitc.spec_ref
+	 *
+	 */
+    public static void bind(String name, Remote obj) throws AlreadyBoundException, 
+    		MalformedURLException, RemoteException {
+        
+    	URI uri = nameParseURI(name);
+    	Registry reg = getRegistry(uri);
+    	try {
+    		reg.bind(uri.getPath().substring(1),obj);
+    	} catch(AlreadyBoundException abe){
+    		throw new AlreadyBoundException ("The key " + name + " already exists."); 
+    	}
+    }
+    
+    /**
+	 * @ar.org.fitc.spec_ref
+	 *
+	 */
+    public static void rebind(String name, Remote obj) throws RemoteException, 
+    		MalformedURLException {
+    	
+    	URI uri = nameParseURI(name);
+    	Registry reg = getRegistry(uri);
+    	reg.rebind(uri.getPath().substring(1),obj);
+    }
+    
+    /**
+	 * @ar.org.fitc.spec_ref
+	 *
+	 */
+    public static void unbind(String name) throws RemoteException, 
+    		NotBoundException, MalformedURLException {
+    	
+    	URI uri = nameParseURI(name);
+    	Registry reg = getRegistry(uri);
+    	try {
+    		reg.unbind(uri.getPath().substring(1));
+    	} catch(NotBoundException nbe){
+			throw new NotBoundException("The key " + name + " is not courrently bound.");
+    	}
+    }
+    
+
+    /**
+     * Returns a reference to the remote object Registry on the specified 
+     * host and port.
+     * 
+     * @param uri that contains the specified host and port
+     * @return a reference to the remote object Registry
+     * @throws RemoteException if the reference could not be created
+     */
+    private static Registry getRegistry(URI uri) throws RemoteException {
+    	
+    	return LocateRegistry.getRegistry(uri.getHost(), uri.getPort());    	
+    }	
+    	
+    
+  
+    /**
+     * Parses a string in an URL format without the scheme component 
+     * and set it to an URI format. If the host is not defined, the 
+     * default host is the localhost. If the port is not defined the 
+     * default port is 1099.
+     * 
+     * @param name a string in URL format (without the scheme component)
+     * @return an URI without the scheme component with the host and port in
+     * explicit way  
+     * @throws MalformedURLException if the name should be in invalid URL form
+     */
+    private static URI nameParseURI (String name) throws MalformedURLException {
+    	URI uri;
+    	URL url;
+    	String path;
+    	    	
+    	try {
+    		uri = new URI(name.trim());
+    	} catch (URISyntaxException e) {
+    		throw new MalformedURLException("invalid URL string: " + name);
+    	}
+    	if(uri.getScheme()!=null) {
+    		throw new MalformedURLException("invalid URL scheme: " + name);
+    	} else {
+    		try {				 
+    			url = new URL ("http:" + name.trim());
+    			if (url.getFile().equals(url.getPath())) {
+					path = (uri.getPath().startsWith("/")) 
+					     ?  uri.getPath() 
+    		             : "/" + uri.getPath();
+				} else {
+					throw new MalformedURLException("invalid character in URL name");
+				}    
+    	   		String host = (uri.getHost() != null) ? uri.getHost() : "localhost";
+				int port = (url.getPort() != -1) ? url.getPort() : Registry.REGISTRY_PORT;
+				uri = new URI(null, null, host, port, path, null, null);			
+    		} catch (URISyntaxException e) {
+    			e.getStackTrace(); 	// This exception should never happen.
+    		}
+    	}	
+		return uri;
+    }
+}
\ No newline at end of file

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Naming.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NoSuchObjectException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NoSuchObjectException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NoSuchObjectException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NoSuchObjectException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,36 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class NoSuchObjectException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 6619395951570472985L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public NoSuchObjectException(String s) {
+        super(s);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NoSuchObjectException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NotBoundException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NotBoundException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NotBoundException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NotBoundException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class NotBoundException extends Exception {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -1857741824849069317L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public NotBoundException() {
+        super();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public NotBoundException(String s) {
+        super(s);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/NotBoundException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,49 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+@Deprecated
+public class RMISecurityException extends SecurityException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -8433406075740433514L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    @Deprecated
+    public RMISecurityException(String name) {
+        super(name);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    @Deprecated
+    public RMISecurityException(String name, String arg1) {
+        // Constructor
+        super(name);
+        // arg1 ignored
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityManager.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityManager.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityManager.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityManager.java Tue May 16 06:51:00 2006
@@ -0,0 +1,31 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class RMISecurityManager extends SecurityManager {
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public RMISecurityManager() {
+        super();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RMISecurityManager.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Remote.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Remote.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Remote.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Remote.java Tue May 16 06:51:00 2006
@@ -0,0 +1,24 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public interface Remote {
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/Remote.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RemoteException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RemoteException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RemoteException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RemoteException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,65 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+import java.io.IOException;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class RemoteException extends IOException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -5148567311918794206L;
+
+    public Throwable detail;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public RemoteException() {
+        super();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public RemoteException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public RemoteException(String s, Throwable cause) {
+        super(s + "; nested exception is:\n\t"  + cause.toString());
+        this.detail = cause;
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public Throwable getCause() {
+        return detail;
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/RemoteException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerError.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerError.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerError.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerError.java Tue May 16 06:51:00 2006
@@ -0,0 +1,37 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ServerError extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 8455284893909696482L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ServerError(String s, Error err) {
+        // Constructor
+        super(s, err);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerError.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ServerException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -4775845313121906682L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ServerException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ServerException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerRuntimeException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerRuntimeException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerRuntimeException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerRuntimeException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,36 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ServerRuntimeException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ServerRuntimeException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/ServerRuntimeException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/StubNotFoundException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/StubNotFoundException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/StubNotFoundException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/StubNotFoundException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class StubNotFoundException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -7088199405468872373L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public StubNotFoundException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public StubNotFoundException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/StubNotFoundException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnexpectedException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnexpectedException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnexpectedException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnexpectedException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class UnexpectedException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1800467484195073863L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public UnexpectedException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public UnexpectedException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnexpectedException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnknownHostException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnknownHostException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnknownHostException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnknownHostException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class UnknownHostException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -8152710247442114228L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public UnknownHostException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public UnknownHostException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnknownHostException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnmarshalException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnmarshalException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnmarshalException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnmarshalException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,44 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class UnmarshalException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 594380845140740218L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public UnmarshalException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public UnmarshalException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/UnmarshalException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/Activatable.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/Activatable.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/Activatable.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/Activatable.java Tue May 16 06:51:00 2006
@@ -0,0 +1,151 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.rmi.MarshalledObject;
+import java.rmi.NoSuchObjectException;
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.server.RMIClientSocketFactory;
+import java.rmi.server.RMIServerSocketFactory;
+import java.rmi.server.RemoteServer;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public abstract class Activatable extends RemoteServer {
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected Activatable(ActivationID id, int port) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected Activatable(ActivationID id, int port,
+            RMIClientSocketFactory csf, RMIServerSocketFactory ssf) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected Activatable(String location, MarshalledObject data,
+            boolean restart, int port) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected Activatable(String location, MarshalledObject data,
+            boolean restart, int port, RMIClientSocketFactory csf,
+            RMIServerSocketFactory ssf) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static ActivationID exportObject(Remote obj, String location,
+            MarshalledObject data, boolean restart, int port)
+            throws ActivationException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static ActivationID exportObject(Remote obj, String location,
+            MarshalledObject data, boolean restart, int port,
+            RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
+            throws ActivationException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static Remote exportObject(Remote obj, ActivationID id, int port)
+            throws RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static Remote exportObject(Remote obj, ActivationID id, int port,
+            RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
+            throws RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static boolean inactive(ActivationID id)
+            throws UnknownObjectException, ActivationException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static boolean unexportObject(Remote obj, boolean force)
+            throws NoSuchObjectException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static Remote register(ActivationDesc desc)
+            throws UnknownGroupException, ActivationException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected ActivationID getID() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static void unregister(ActivationID id)
+            throws UnknownObjectException, ActivationException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/Activatable.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivateFailedException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivateFailedException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivateFailedException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivateFailedException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,46 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.rmi.RemoteException;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ActivateFailedException extends RemoteException {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 4863550261346652506L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivateFailedException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivateFailedException(String s, Exception ex) {
+        super(s, ex);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivateFailedException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationDesc.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationDesc.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationDesc.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationDesc.java Tue May 16 06:51:00 2006
@@ -0,0 +1,123 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.io.Serializable;
+import java.rmi.MarshalledObject;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public final class ActivationDesc implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 7455834104417690957L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationDesc(String arg0, String className, MarshalledObject data)
+            throws ActivationException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationDesc(String arg0, String className, MarshalledObject data,
+            boolean arg3) throws ActivationException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationDesc(ActivationGroupID groupID, String className,
+            String location, MarshalledObject data) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationDesc(ActivationGroupID groupID, String className,
+            String location, MarshalledObject data, boolean restart) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationGroupID getGroupID() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public boolean getRestartMode() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public int hashCode() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public boolean equals(Object obj) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public String getLocation() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public String getClassName() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public MarshalledObject getData() {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationDesc.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationException.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationException.java Tue May 16 06:51:00 2006
@@ -0,0 +1,64 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ActivationException extends Exception {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -4320118837291406071L;
+
+    public Throwable detail;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationException() {
+        super();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationException(String s) {
+        super(s);
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationException(String s, Throwable cause) {
+        super(s + "; nested exception is:\n\t"  + cause.toString());
+        detail = cause;
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    @Override
+    public Throwable getCause() {
+        return detail.getCause();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationException.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup.java Tue May 16 06:51:00 2006
@@ -0,0 +1,109 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.rmi.MarshalledObject;
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.server.UnicastRemoteObject;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public abstract class ActivationGroup extends UnicastRemoteObject implements
+        ActivationInstantiator {
+
+    private static final long serialVersionUID = -7696947875314805420L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected ActivationGroup(ActivationGroupID groupID) throws RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public abstract void activeObject(ActivationID id, Remote obj)
+            throws ActivationException, UnknownObjectException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected void activeObject(ActivationID id, MarshalledObject mobj)
+            throws ActivationException, UnknownObjectException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static synchronized ActivationGroupID currentGroupID() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static synchronized ActivationSystem getSystem()
+            throws ActivationException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    protected void inactiveGroup() throws UnknownGroupException,
+            RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public boolean inactiveObject(ActivationID id) throws ActivationException,
+            UnknownObjectException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static synchronized void setSystem(ActivationSystem system)
+            throws ActivationException {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static synchronized ActivationGroup createGroup(
+            ActivationGroupID arg0, ActivationGroupDesc arg1, long arg2)
+            throws ActivationException {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupDesc.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupDesc.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupDesc.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupDesc.java Tue May 16 06:51:00 2006
@@ -0,0 +1,158 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.io.Serializable;
+import java.rmi.MarshalledObject;
+import java.util.Properties;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public final class ActivationGroupDesc implements Serializable {
+    
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -4936225423168276595L;
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public static class CommandEnvironment implements Serializable {
+        
+        /**
+         * 
+         */
+        private static final long serialVersionUID = 6165754737887770191L;
+        
+        /**
+         * @ar.org.fitc.spec_ref
+         * 
+         */
+        public CommandEnvironment(String cmdpath, String[] argv) {
+            throw new UnsupportedOperationException();
+        }
+        
+        /**
+         * @ar.org.fitc.spec_ref
+         * 
+         */
+        public String[] getCommandOptions() {
+            throw new UnsupportedOperationException();
+        }
+        
+        /**
+         * @ar.org.fitc.spec_ref
+         * 
+         */
+        public String getCommandPath() {
+            throw new UnsupportedOperationException();
+        }
+        
+        /**
+         * @ar.org.fitc.spec_ref
+         * 
+         */
+        public int hashCode() {
+            throw new UnsupportedOperationException();
+        }
+        
+        /**
+         * @ar.org.fitc.spec_ref
+         * 
+         */
+        public boolean equals(Object obj) {
+            throw new UnsupportedOperationException();
+        }
+        
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationGroupDesc(Properties overrides, CommandEnvironment cmd) {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationGroupDesc(String className, String location,
+            MarshalledObject data, Properties overrides, CommandEnvironment cmd) {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public CommandEnvironment getCommandEnvironment() {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public Properties getPropertyOverrides() {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public int hashCode() {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public boolean equals(Object obj) {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public String getLocation() {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public String getClassName() {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public MarshalledObject getData() {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupDesc.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupID.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupID.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupID.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupID.java Tue May 16 06:51:00 2006
@@ -0,0 +1,62 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.io.Serializable;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ActivationGroupID implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -1648432278909740833L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationGroupID(ActivationSystem system) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationSystem getSystem() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public int hashCode() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public boolean equals(Object obj) {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroupID.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup_Stub.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup_Stub.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup_Stub.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup_Stub.java Tue May 16 06:51:00 2006
@@ -0,0 +1,52 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.rmi.MarshalledObject;
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.server.RemoteRef;
+import java.rmi.server.RemoteStub;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public final class ActivationGroup_Stub extends RemoteStub implements
+        ActivationInstantiator, Remote {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationGroup_Stub(RemoteRef ref) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public MarshalledObject newInstance(ActivationID id, ActivationDesc desc)
+            throws RemoteException, ActivationException {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationGroup_Stub.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationID.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationID.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationID.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationID.java Tue May 16 06:51:00 2006
@@ -0,0 +1,65 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.io.Serializable;
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public class ActivationID implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -4608673054848209235L;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public ActivationID(Activator arg0) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public int hashCode() {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public boolean equals(Object obj) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    public Remote activate(boolean force) throws ActivationException,
+            UnknownObjectException, RemoteException {
+        throw new UnsupportedOperationException();
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationID.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationInstantiator.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationInstantiator.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationInstantiator.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationInstantiator.java Tue May 16 06:51:00 2006
@@ -0,0 +1,34 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.rmi.MarshalledObject;
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public interface ActivationInstantiator extends Remote {
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    MarshalledObject newInstance(ActivationID id, ActivationDesc desc)
+            throws ActivationException, RemoteException;
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationInstantiator.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationMonitor.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationMonitor.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationMonitor.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationMonitor.java Tue May 16 06:51:00 2006
@@ -0,0 +1,48 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.rmi.MarshalledObject;
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public interface ActivationMonitor extends Remote {
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    void activeObject(ActivationID id, MarshalledObject obj)
+            throws UnknownObjectException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    void inactiveGroup(ActivationGroupID id, long incarnation)
+            throws UnknownGroupException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    void inactiveObject(ActivationID id) throws UnknownObjectException,
+            RemoteException;
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationMonitor.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationSystem.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationSystem.java?rev=406944&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationSystem.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi2/src/java/rmi/activation/ActivationSystem.java Tue May 16 06:51:00 2006
@@ -0,0 +1,100 @@
+/* 
+*  Copyright 2005 The Apache Software Foundation or its licensors, as applicable. 
+* 
+*  Licensed under the Apache License, Version 2.0 (the "License"); 
+*  you may not use this file except in compliance with the License. 
+*  You may obtain a copy of the License at 
+* 
+*    http://www.apache.org/licenses/LICENSE-2.0 
+* 
+*  Unless required by applicable law or agreed to in writing, software 
+*  distributed under the License is distributed on an "AS IS" BASIS, 
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+*  See the License for the specific language governing permissions and 
+*  limitations under the License. 
+*/
+package java.rmi.activation;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @ar.org.fitc.spec_ref
+ * 
+ */
+public interface ActivationSystem extends Remote {
+
+    int SYSTEM_PORT = 1098;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    ActivationMonitor activeGroup(ActivationGroupID id,
+            ActivationInstantiator group, long incarnation)
+            throws UnknownGroupException, ActivationException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    ActivationDesc getActivationDesc(ActivationID id)
+            throws ActivationException, UnknownObjectException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id)
+            throws ActivationException, UnknownGroupException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    ActivationGroupID registerGroup(ActivationGroupDesc desc)
+            throws ActivationException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    ActivationID registerObject(ActivationDesc desc)
+            throws ActivationException, UnknownGroupException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    ActivationDesc setActivationDesc(ActivationID id, ActivationDesc desc)
+            throws ActivationException, UnknownObjectException,
+            UnknownGroupException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    ActivationGroupDesc setActivationGroupDesc(ActivationGroupID id,
+            ActivationGroupDesc desc) throws ActivationException,
+            UnknownGroupException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    void unregisterGroup(ActivationGroupID id) throws ActivationException,
+            UnknownGroupException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    void unregisterObject(ActivationID id) throws ActivationException,
+            UnknownObjectException, RemoteException;
+
+    /**
+     * @ar.org.fitc.spec_ref
+     * 
+     */
+    void shutdown() throws RemoteException;
+}