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 Fri, 09 Nov 2001 19:33:35 GMT
remm        01/11/09 11:33:35

  Modified:    catalina/src/share/org/apache/catalina/deploy
                        NamingResources.java
  Log:
  - Add a new findResourceParams method.
  
  Revision  Changes    Path
  1.3       +22 -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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NamingResources.java	2001/11/08 21:15:14	1.2
  +++ NamingResources.java	2001/11/09 19:33:35	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/NamingResources.java,v
1.2 2001/11/08 21:15:14 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/11/08 21:15:14 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/NamingResources.java,v
1.3 2001/11/09 19:33:35 remm Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/11/09 19:33:35 $
    *
    * ====================================================================
    *
  @@ -73,7 +73,7 @@
    * Naming Context and their associated JNDI context.
    *
    * @author Remy Maucherat
  - * @version $Revision: 1.2 $ $Date: 2001/11/08 21:15:14 $
  + * @version $Revision: 1.3 $ $Date: 2001/11/09 19:33:35 $
    */
   
   public final class NamingResources {
  @@ -427,6 +427,24 @@
   
           synchronized (resourceParams) {
               return ((ResourceParams) resourceParams.get(name));
  +        }
  +
  +    }
  +
  +
  +    /**
  +     * Return the resource parameters with the specified name, if any;
  +     * otherwise return <code>null</code>.
  +     *
  +     * @param name Name of the desired resource parameters
  +     */
  +    public ResourceParams[] findResourceParams() {
  +
  +        synchronized (resourceParams) {
  +            ResourceParams results[] = 
  +                new ResourceParams[resourceParams.size()];
  +            return ((ResourceParams[]) resourceParams.values()
  +                    .toArray(results));
           }
   
       }
  
  
  

--
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