You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by am...@apache.org on 2001/11/06 23:33:54 UTC

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardService.java

amyroh      01/11/06 14:33:54

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardService.java
  Log:
  Add "server" property for Catalina tree structure.
  
  Revision  Changes    Path
  1.7       +30 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardService.java
  
  Index: StandardService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardService.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StandardService.java	2001/09/04 19:19:48	1.6
  +++ StandardService.java	2001/11/06 22:33:54	1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardService.java,v 1.6 2001/09/04 19:19:48 craigmcc Exp $
  - * $Revision: 1.6 $
  - * $Date: 2001/09/04 19:19:48 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardService.java,v 1.7 2001/11/06 22:33:54 amyroh Exp $
  + * $Revision: 1.7 $
  + * $Date: 2001/11/06 22:33:54 $
    *
    * ====================================================================
    *
  @@ -84,7 +84,7 @@
    * not required.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.6 $ $Date: 2001/09/04 19:19:48 $
  + * @version $Revision: 1.7 $ $Date: 2001/11/06 22:33:54 $
    */
   
   public final class StandardService
  @@ -131,6 +131,10 @@
       private static final StringManager sm =
           StringManager.getManager(Constants.Package);
   
  +    /**
  +     * The <code>Server</code> that owns this Service, if any.
  +     */
  +    private Server server = null;
   
       /**
        * Has this component been started?
  @@ -226,6 +230,28 @@
       public void setName(String name) {
   
           this.name = name;
  +
  +    }
  +
  +
  +    /**
  +     * Return the <code>Server</code> with which we are associated (if any).
  +     */
  +    public Server getServer() {
  +
  +        return (this.server);
  +
  +    }
  +
  +
  +    /**
  +     * Set the <code>Server</code> with which we are associated (if any).
  +     *
  +     * @param server The server that owns this Service
  +     */
  +    public void setServer(Server server) {
  +
  +        this.server = server;
   
       }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>