[jboss-cvs] JBossCache/src/org/jboss/cache/config ...

Manik Surtani msurtani at jboss.com
Wed Jul 19 01:10:11 EDT 2006


  User: msurtani
  Date: 06/07/19 01:10:11

  Modified:    src/org/jboss/cache/config   Configuration.java
                        ConfigurationImpl.java
  Log:
  Implemented and added tests for configuring a tree cache using the factory.
  
  Revision  Changes    Path
  1.3       +12 -0     JBossCache/src/org/jboss/cache/config/Configuration.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Configuration.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/Configuration.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- Configuration.java	18 Jul 2006 10:50:45 -0000	1.2
  +++ Configuration.java	19 Jul 2006 05:10:11 -0000	1.3
  @@ -8,6 +8,8 @@
   
   import org.w3c.dom.Element;
   
  +import java.util.Set;
  +
   /**
    * A configuration object that represents a cache configuration.  Internally all config elements are
    * stored as Strings.
  @@ -68,4 +70,14 @@
        * @param value
        */
       void setAttribute(String attribute, String value);
  +
  +    /**
  +     * Returns the keys for String, integer, long or boolean type attribs
  +     */
  +    Set<String> getSimpleAttributeNames();
  +
  +    /**
  +     * Returns the keys for XML type attribs.
  +     */
  +    Set<String> getXmlAttributeNames();
   }
  
  
  
  1.5       +11 -0     JBossCache/src/org/jboss/cache/config/ConfigurationImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConfigurationImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/ConfigurationImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- ConfigurationImpl.java	18 Jul 2006 18:28:39 -0000	1.4
  +++ ConfigurationImpl.java	19 Jul 2006 05:10:11 -0000	1.5
  @@ -16,6 +16,7 @@
   import java.io.InputStream;
   import java.util.HashMap;
   import java.util.Map;
  +import java.util.Set;
   
   /**
    * Implementation of the Configuration interface.
  @@ -81,6 +82,16 @@
           if (!immutable) stringAttribs.put(attribute, value);
       }
   
  +    public Set<String> getSimpleAttributeNames()
  +    {
  +        return stringAttribs.keySet();
  +    }
  +
  +    public Set<String> getXmlAttributeNames()
  +    {
  +        return xmlAttribs.keySet();
  +    }
  +
       public void setImmutable(boolean immutable)
       {
           this.immutable = immutable;
  
  
  



More information about the jboss-cvs-commits mailing list