tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy NamingResources.java
Date Sat, 08 Jun 2002 07:28:14 GMT
remm        2002/06/08 00:28:12

  Modified:    catalina/src/share/org/apache/catalina/deploy
                        NamingResources.java
  Log:
  - Add new exists method. Returns true if a resource with the specified name exists.
  
  Revision  Changes    Path
  1.8       +14 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/NamingResources.java
  
  Index: NamingResources.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/NamingResources.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NamingResources.java	30 May 2002 23:44:14 -0000	1.7
  +++ NamingResources.java	8 Jun 2002 07:28:12 -0000	1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/NamingResources.java,v
1.7 2002/05/30 23:44:14 remm Exp $
  - * $Revision: 1.7 $
  - * $Date: 2002/05/30 23:44:14 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/NamingResources.java,v
1.8 2002/06/08 07:28:12 remm Exp $
  + * $Revision: 1.8 $
  + * $Date: 2002/06/08 07:28:12 $
    *
    * ====================================================================
    *
  @@ -76,7 +76,7 @@
    * Naming Context and their associated JNDI context.
    *
    * @author Remy Maucherat
  - * @version $Revision: 1.7 $ $Date: 2002/05/30 23:44:14 $
  + * @version $Revision: 1.8 $ $Date: 2002/06/08 07:28:12 $
    */
   
   public final class NamingResources {
  @@ -531,6 +531,16 @@
               return ((ResourceParams[]) resourceParams.values()
                       .toArray(results));
           }
  +
  +    }
  +
  +
  +    /**
  +     * Return true if the name specified already exists.
  +     */
  +    public boolean exists(String name) {
  +
  +        return (entries.containsKey(name));
   
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message