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 DefaultContext.java
Date Fri, 09 Nov 2001 19:34:21 GMT
remm        01/11/09 11:34:21

  Modified:    catalina/src/share/org/apache/catalina DefaultContext.java
  Log:
  - The DefaultContext should be able to use resource link.
  
  Revision  Changes    Path
  1.2       +37 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/DefaultContext.java
  
  Index: DefaultContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/DefaultContext.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultContext.java	2001/10/16 23:13:48	1.1
  +++ DefaultContext.java	2001/11/09 19:34:21	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/DefaultContext.java,v
1.1 2001/10/16 23:13:48 remm Exp $
  - * $Revision: 1.1 $
  - * $Date: 2001/10/16 23:13:48 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/DefaultContext.java,v
1.2 2001/11/09 19:34:21 remm Exp $
  + * $Revision: 1.2 $
  + * $Date: 2001/11/09 19:34:21 $
    *
    * ====================================================================
    *
  @@ -69,6 +69,7 @@
   import org.apache.catalina.deploy.ContextEjb;
   import org.apache.catalina.deploy.ContextEnvironment;
   import org.apache.catalina.deploy.ContextResource;
  +import org.apache.catalina.deploy.ContextResourceLink;
   import org.apache.catalina.deploy.ResourceParams;
   
   
  @@ -80,7 +81,7 @@
    *
    * @author Glenn Nielsen
    * @author Remy Maucherat
  - * @version $Revision: 1.1 $ $Date: 2001/10/16 23:13:48 $
  + * @version $Revision: 1.2 $ $Date: 2001/11/09 19:34:21 $
    */
   
   public interface DefaultContext {
  @@ -338,6 +339,14 @@
   
   
       /**
  +     * Add a resource link for this web application.
  +     *
  +     * @param resource New resource link
  +     */
  +    public void addResourceLink(ContextResourceLink resourceLink);
  +
  +
  +    /**
        * Add the classname of a LifecycleListener to be added to each
        * Wrapper appended to this Context.
        *
  @@ -460,6 +469,22 @@
   
   
       /**
  +     * Return the resource link with the specified name, if any;
  +     * otherwise return <code>null</code>.
  +     *
  +     * @param name Name of the desired resource link
  +     */
  +    public ContextResourceLink findResourceLink(String name);
  +
  +
  +    /**
  +     * Return the defined resource links for this application.  If
  +     * none have been defined, a zero-length array is returned.
  +     */
  +    public ContextResourceLink[] findResourceLinks();
  +
  +
  +    /**
        * Return the defined resource references for this application.  If
        * none have been defined, a zero-length array is returned.
        */
  @@ -546,6 +571,14 @@
        * @param name Name of the resource environment reference to remove
        */
       public void removeResourceEnvRef(String name);
  +
  +
  +    /**
  +     * Remove any resource link with the specified name.
  +     *
  +     * @param name Name of the resource link to remove
  +     */
  +    public void removeResourceLink(String 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