[jboss-cvs] JBossCache/src/org/jboss/cache/transaction ...
Manik Surtani
msurtani at jboss.com
Wed Jan 3 10:33:10 EST 2007
User: msurtani
Date: 07/01/03 10:33:10
Modified: src/org/jboss/cache/transaction DummyTransaction.java
DummyContext.java
Log:
Improved notification mechanism, added a notification interceptor
Revision Changes Path
1.10 +14 -9 JBossCache/src/org/jboss/cache/transaction/DummyTransaction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DummyTransaction.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/transaction/DummyTransaction.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- DummyTransaction.java 21 Nov 2006 08:57:02 -0000 1.9
+++ DummyTransaction.java 3 Jan 2007 15:33:10 -0000 1.10
@@ -3,15 +3,20 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import javax.transaction.*;
+import javax.transaction.HeuristicMixedException;
+import javax.transaction.HeuristicRollbackException;
+import javax.transaction.RollbackException;
+import javax.transaction.Status;
+import javax.transaction.Synchronization;
+import javax.transaction.SystemException;
+import javax.transaction.Transaction;
import javax.transaction.xa.XAResource;
-import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
/**
* @author bela
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
* Date: May 15, 2003
* Time: 4:20:17 PM
*/
1.2 +179 -137 JBossCache/src/org/jboss/cache/transaction/DummyContext.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DummyContext.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/transaction/DummyContext.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- DummyContext.java 31 Mar 2005 10:15:07 -0000 1.1
+++ DummyContext.java 3 Jan 2007 15:33:10 -0000 1.2
@@ -1,6 +1,18 @@
package org.jboss.cache.transaction;
-import javax.naming.*;
+import javax.naming.Binding;
+import javax.naming.CompoundName;
+import javax.naming.Context;
+import javax.naming.ContextNotEmptyException;
+import javax.naming.Name;
+import javax.naming.NameAlreadyBoundException;
+import javax.naming.NameClassPair;
+import javax.naming.NameNotFoundException;
+import javax.naming.NameParser;
+import javax.naming.NamingEnumeration;
+import javax.naming.NamingException;
+import javax.naming.NotContextException;
+import javax.naming.OperationNotSupportedException;
import javax.naming.directory.Attributes;
import javax.naming.directory.DirContext;
import javax.naming.directory.InvalidAttributesException;
@@ -12,9 +24,10 @@
* Date: May 15, 2003
* Time: 6:21:37 PM
*/
-public class DummyContext implements Context {
+public class DummyContext implements Context
+{
- HashMap bindings=new HashMap();
+ HashMap bindings = new HashMap();
/**
* Retrieves the named object.
@@ -29,7 +42,8 @@
* @see #lookup(String)
* @see #lookupLink(Name)
*/
- public Object lookup(Name name) throws NamingException {
+ public Object lookup(Name name) throws NamingException
+ {
return null;
}
@@ -41,7 +55,8 @@
* @return the object bound to <tt>name</tt>
* @throws NamingException if a naming exception is encountered
*/
- public Object lookup(String name) throws NamingException {
+ public Object lookup(String name) throws NamingException
+ {
return bindings.get(name);
}
@@ -55,17 +70,18 @@
* @throws NameAlreadyBoundException if name is already bound
* @throws InvalidAttributesException if object did not supply all mandatory attributes
* @throws NamingException if a naming exception is encountered
- * @see #bind(String, Object)
- * @see #rebind(Name, Object)
- * @see DirContext#bind(Name, Object,
- * Attributes)
+ * @see #bind(String,Object)
+ * @see #rebind(Name,Object)
+ * @see DirContext#bind(Name,Object,
+ *Attributes)
*/
- public void bind(Name name, Object obj) throws NamingException {
+ public void bind(Name name, Object obj) throws NamingException
+ {
}
/**
* Binds a name to an object.
- * See {@link #bind(Name, Object)} for details.
+ * See {@link #bind(Name,Object)} for details.
*
* @param name the name to bind; may not be empty
* @param obj the object to bind; possibly null
@@ -73,7 +89,8 @@
* @throws InvalidAttributesException if object did not supply all mandatory attributes
* @throws NamingException if a naming exception is encountered
*/
- public void bind(String name, Object obj) throws NamingException {
+ public void bind(String name, Object obj) throws NamingException
+ {
bindings.put(name, obj);
}
@@ -91,25 +108,27 @@
* @param obj the object to bind; possibly null
* @throws InvalidAttributesException if object did not supply all mandatory attributes
* @throws NamingException if a naming exception is encountered
- * @see #rebind(String, Object)
- * @see #bind(Name, Object)
- * @see DirContext#rebind(Name, Object,
- * Attributes)
+ * @see #rebind(String,Object)
+ * @see #bind(Name,Object)
+ * @see DirContext#rebind(Name,Object,
+ *Attributes)
* @see DirContext
*/
- public void rebind(Name name, Object obj) throws NamingException {
+ public void rebind(Name name, Object obj) throws NamingException
+ {
}
/**
* Binds a name to an object, overwriting any existing binding.
- * See {@link #rebind(Name, Object)} for details.
+ * See {@link #rebind(Name,Object)} for details.
*
* @param name the name to bind; may not be empty
* @param obj the object to bind; possibly null
* @throws InvalidAttributesException if object did not supply all mandatory attributes
* @throws NamingException if a naming exception is encountered
*/
- public void rebind(String name, Object obj) throws NamingException {
+ public void rebind(String name, Object obj) throws NamingException
+ {
bindings.put(name, obj);
}
@@ -133,7 +152,8 @@
* @throws NamingException if a naming exception is encountered
* @see #unbind(String)
*/
- public void unbind(Name name) throws NamingException {
+ public void unbind(Name name) throws NamingException
+ {
}
/**
@@ -144,7 +164,8 @@
* @throws NameNotFoundException if an intermediate context does not exist
* @throws NamingException if a naming exception is encountered
*/
- public void unbind(String name) throws NamingException {
+ public void unbind(String name) throws NamingException
+ {
bindings.remove(name);
}
@@ -159,24 +180,26 @@
* @param newName the name of the new binding; may not be empty
* @throws NameAlreadyBoundException if <tt>newName</tt> is already bound
* @throws NamingException if a naming exception is encountered
- * @see #rename(String, String)
- * @see #bind(Name, Object)
- * @see #rebind(Name, Object)
+ * @see #rename(String,String)
+ * @see #bind(Name,Object)
+ * @see #rebind(Name,Object)
*/
- public void rename(Name oldName, Name newName) throws NamingException {
+ public void rename(Name oldName, Name newName) throws NamingException
+ {
}
/**
* Binds a new name to the object bound to an old name, and unbinds
* the old name.
- * See {@link #rename(Name, Name)} for details.
+ * See {@link #rename(Name,Name)} for details.
*
* @param oldName the name of the existing binding; may not be empty
* @param newName the name of the new binding; may not be empty
* @throws NameAlreadyBoundException if <tt>newName</tt> is already bound
* @throws NamingException if a naming exception is encountered
*/
- public void rename(String oldName, String newName) throws NamingException {
+ public void rename(String oldName, String newName) throws NamingException
+ {
}
/**
@@ -196,7 +219,8 @@
* @see #listBindings(Name)
* @see NameClassPair
*/
- public NamingEnumeration list(Name name) throws NamingException {
+ public NamingEnumeration list(Name name) throws NamingException
+ {
return null;
}
@@ -211,7 +235,8 @@
* enumeration is of type <tt>NameClassPair</tt>.
* @throws NamingException if a naming exception is encountered
*/
- public NamingEnumeration list(String name) throws NamingException {
+ public NamingEnumeration list(String name) throws NamingException
+ {
return null;
}
@@ -232,7 +257,8 @@
* @see #list(Name)
* @see Binding
*/
- public NamingEnumeration listBindings(Name name) throws NamingException {
+ public NamingEnumeration listBindings(Name name) throws NamingException
+ {
return null;
}
@@ -247,7 +273,8 @@
* <tt>Binding</tt>.
* @throws NamingException if a naming exception is encountered
*/
- public NamingEnumeration listBindings(String name) throws NamingException {
+ public NamingEnumeration listBindings(String name) throws NamingException
+ {
return null;
}
@@ -282,7 +309,8 @@
* @throws NamingException if a naming exception is encountered
* @see #destroySubcontext(String)
*/
- public void destroySubcontext(Name name) throws NamingException {
+ public void destroySubcontext(Name name) throws NamingException
+ {
}
/**
@@ -296,7 +324,8 @@
* @throws ContextNotEmptyException if the named context is not empty
* @throws NamingException if a naming exception is encountered
*/
- public void destroySubcontext(String name) throws NamingException {
+ public void destroySubcontext(String name) throws NamingException
+ {
}
/**
@@ -315,7 +344,8 @@
* @see #createSubcontext(String)
* @see DirContext#createSubcontext
*/
- public Context createSubcontext(Name name) throws NamingException {
+ public Context createSubcontext(Name name) throws NamingException
+ {
return null;
}
@@ -330,7 +360,8 @@
* mandatory attributes
* @throws NamingException if a naming exception is encountered
*/
- public Context createSubcontext(String name) throws NamingException {
+ public Context createSubcontext(String name) throws NamingException
+ {
return null;
}
@@ -346,7 +377,8 @@
* @throws NamingException if a naming exception is encountered
* @see #lookupLink(String)
*/
- public Object lookupLink(Name name) throws NamingException {
+ public Object lookupLink(Name name) throws NamingException
+ {
return null;
}
@@ -360,7 +392,8 @@
* terminal link (if any)
* @throws NamingException if a naming exception is encountered
*/
- public Object lookupLink(String name) throws NamingException {
+ public Object lookupLink(String name) throws NamingException
+ {
return null;
}
@@ -381,7 +414,8 @@
* @see #getNameParser(String)
* @see CompoundName
*/
- public NameParser getNameParser(Name name) throws NamingException {
+ public NameParser getNameParser(Name name) throws NamingException
+ {
return null;
}
@@ -394,7 +428,8 @@
* components
* @throws NamingException if a naming exception is encountered
*/
- public NameParser getNameParser(String name) throws NamingException {
+ public NameParser getNameParser(String name) throws NamingException
+ {
return null;
}
@@ -427,16 +462,17 @@
* @param prefix the name of this context relative to one of its ancestors
* @return the composition of <code>prefix</code> and <code>name</code>
* @throws NamingException if a naming exception is encountered
- * @see #composeName(String, String)
+ * @see #composeName(String,String)
*/
- public Name composeName(Name name, Name prefix) throws NamingException {
+ public Name composeName(Name name, Name prefix) throws NamingException
+ {
return null;
}
/**
* Composes the name of this context with a name relative to
* this context.
- * See {@link #composeName(Name, Name)} for details.
+ * See {@link #composeName(Name,Name)} for details.
*
* @param name a name relative to this context
* @param prefix the name of this context relative to one of its ancestors
@@ -444,7 +480,8 @@
* @throws NamingException if a naming exception is encountered
*/
public String composeName(String name, String prefix)
- throws NamingException {
+ throws NamingException
+ {
return null;
}
@@ -462,7 +499,8 @@
* @see #removeFromEnvironment(String)
*/
public Object addToEnvironment(String propName, Object propVal)
- throws NamingException {
+ throws NamingException
+ {
return null;
}
@@ -476,10 +514,11 @@
* not in the environment
* @throws NamingException if a naming exception is encountered
* @see #getEnvironment()
- * @see #addToEnvironment(String, Object)
+ * @see #addToEnvironment(String,Object)
*/
public Object removeFromEnvironment(String propName)
- throws NamingException {
+ throws NamingException
+ {
return null;
}
@@ -494,10 +533,11 @@
*
* @return the environment of this context; never null
* @throws NamingException if a naming exception is encountered
- * @see #addToEnvironment(String, Object)
+ * @see #addToEnvironment(String,Object)
* @see #removeFromEnvironment(String)
*/
- public Hashtable getEnvironment() throws NamingException {
+ public Hashtable getEnvironment() throws NamingException
+ {
return null;
}
@@ -512,7 +552,8 @@
*
* @throws NamingException if a naming exception is encountered
*/
- public void close() throws NamingException {
+ public void close() throws NamingException
+ {
}
/**
@@ -533,7 +574,8 @@
* @throws NamingException if a naming exception is encountered
* @since 1.3
*/
- public String getNameInNamespace() throws NamingException {
+ public String getNameInNamespace() throws NamingException
+ {
return null;
}
}
More information about the jboss-cvs-commits
mailing list