geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject cvs commit: incubator-geronimo/modules/naming/src/java/org/apache/geronimo/naming/java ReadOnlyContext.java
Date Sat, 21 Feb 2004 17:01:24 GMT
jboynes     2004/02/21 09:01:24

  Modified:    modules/naming/src/java/org/apache/geronimo/naming/java
                        ReadOnlyContext.java
  Log:
  Needs to be Serializable to be a persistent attribute
  
  Revision  Changes    Path
  1.3       +4 -3      incubator-geronimo/modules/naming/src/java/org/apache/geronimo/naming/java/ReadOnlyContext.java
  
  Index: ReadOnlyContext.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/naming/src/java/org/apache/geronimo/naming/java/ReadOnlyContext.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ReadOnlyContext.java	13 Feb 2004 23:41:47 -0000	1.2
  +++ ReadOnlyContext.java	21 Feb 2004 17:01:24 -0000	1.3
  @@ -60,6 +60,7 @@
   import java.util.Hashtable;
   import java.util.Iterator;
   import java.util.Map;
  +import java.io.Serializable;
   
   import javax.naming.Binding;
   import javax.naming.CompositeName;
  @@ -95,7 +96,7 @@
    *
    * @version $Revision$ $Date$
    */
  -public class ReadOnlyContext implements Context {
  +public class ReadOnlyContext implements Context,Serializable {
       protected final Hashtable env;        // environment for this context
       protected final Map bindings;         // bindings at my level
       protected final Map treeBindings;     // all bindings under me
  @@ -112,7 +113,7 @@
           if (env == null) {
               this.env = new Hashtable();
           } else {
  -        this.env = new Hashtable(env);
  +            this.env = new Hashtable(env);
           }
           this.bindings = Collections.EMPTY_MAP;
           this.treeBindings = Collections.EMPTY_MAP;
  
  
  

Mime
View raw message