User: slaboure
Date: 01/11/26 09:11:57
Modified: src/main/org/jboss/ha/jndi HAJNDI.java
Log:
Cleaned import statements
Follow JBoss coding conventions
Revision Changes Path
1.10 +24 -35 jbossmx/src/main/org/jboss/ha/jndi/HAJNDI.java
Index: HAJNDI.java
===================================================================
RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/jndi/HAJNDI.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- HAJNDI.java 2001/11/26 03:24:52 1.9
+++ HAJNDI.java 2001/11/26 17:11:56 1.10
@@ -5,41 +5,23 @@
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
+
package org.jboss.ha.jndi;
+
import java.io.Serializable;
-import java.io.ObjectStreamException;
-import java.io.NotSerializableException;
-import java.rmi.RemoteException;
-import java.rmi.server.UnicastRemoteObject;
-import java.rmi.server.RemoteObject;
-import java.util.Enumeration;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.Hashtable;
-import java.util.Vector;
import java.util.ArrayList;
+import java.util.Collection;
-import javax.naming.Context;
+import javax.naming.InitialContext;
import javax.naming.Name;
-import javax.naming.NameClassPair;
-import javax.naming.Binding;
-import javax.naming.Reference;
-import javax.naming.NamingEnumeration;
-import javax.naming.InvalidNameException;
-import javax.naming.NamingException;
-import javax.naming.InvalidNameException;
import javax.naming.NameNotFoundException;
-import javax.naming.NotContextException;
-import javax.naming.NameAlreadyBoundException;
-import javax.naming.CannotProceedException;
-import javax.naming.spi.ResolveResult;
-import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.jnp.interfaces.NamingContext;
-import org.jnp.interfaces.*;
-import org.jnp.server.NamingServer;
import org.jboss.ha.framework.interfaces.HAPartition;
-import org.jboss.logging.Logger;
+import org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer;
/**
* This class extends the JNP JNDI implementation.
@@ -47,21 +29,26 @@
* that are running HAJNDI.
* lookups will look for Names in HAJNDI then delegate to the local InitialContext
*
- * @author [EMAIL PROTECTED]
- * @version $Revision: 1.9 $
+ * @author <a href="mailto:[EMAIL PROTECTED]">Bill Burke</a>
+ * @version $Revision: 1.10 $
*
* <p><b>Revisions:</b><br>
*/
-public class HAJNDI extends NamingServer
- implements Naming, java.io.Serializable, HAPartition.HAPartitionStateTransfer
+
+public class HAJNDI extends org.jnp.server.NamingServer implements
HAPartitionStateTransfer, Serializable, org.jnp.interfaces.Naming
{
+ // Attributes --------------------------------------------------------
+
private HAPartition partition;
- private Logger log;
+ private org.jboss.logging.Logger log;
+
+ // Constructor --------------------------------------------------------
+
public HAJNDI(HAPartition partition)
throws NamingException
{
super();
- log = Logger.getLogger("HAJNDI");
+ log = org.jboss.logging.Logger.getLogger("HAJNDI");
this.partition = partition;
}
@@ -75,6 +62,8 @@
partition.registerRPCHandler("HAJNDI", this);
}
+ // HAPartition.HAPartitionStateTransfer Implementation
--------------------------------------------------------
+
public Serializable getCurrentState()
{
log.info("getCurrentState called");
@@ -85,7 +74,7 @@
{
log.info("setCurrentState called");
table.clear();
- table.putAll((Hashtable)newState);
+ table.putAll((java.util.Hashtable)newState);
}
// Naming implementation -----------------------------------------
@@ -251,7 +240,7 @@
log.error("lookupLocally failed for " + name.toString(), nex);
throw nex;
}
- catch (RemoteException rmex)
+ catch (java.rmi.RemoteException rmex)
{
throw new NamingException("unknown remote exception");
}
@@ -262,7 +251,7 @@
}
}
- protected ArrayList enum2list(NamingEnumeration en)
+ protected ArrayList enum2list (javax.naming.NamingEnumeration en)
{
ArrayList rtn = new ArrayList();
try
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development