tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup ClusterRuleSet.java
Date Sun, 03 Apr 2005 16:03:49 GMT
pero        2005/04/03 09:03:49

  Modified:    catalina/src/share/org/apache/catalina/startup
                        ClusterRuleSet.java
  Log:
  Add Listener and ClusterListener to Cluster Element
  
  Revision  Changes    Path
  1.5       +18 -5     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/ClusterRuleSet.java
  
  Index: ClusterRuleSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/ClusterRuleSet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ClusterRuleSet.java	26 Jun 2004 17:41:31 -0000	1.4
  +++ ClusterRuleSet.java	3 Apr 2005 16:03:49 -0000	1.5
  @@ -27,6 +27,7 @@
    * Cluster definition element.  </p>
    *
    * @author Filip Hanik
  + * @author Peter Rossbach
    * @version $Revision$ $Date$
    */
   
  @@ -123,11 +124,23 @@
           digester.addSetNext(prefix + "Deployer",
                               "setClusterDeployer",
                               "org.apache.catalina.cluster.ClusterDeployer");
  -
  -
  -
  +        
  +        digester.addObjectCreate(prefix + "Listener",
  +                null, // MUST be specified in the element
  +                "className");
  +        digester.addSetProperties(prefix + "Listener");
  +        digester.addSetNext(prefix + "Listener",
  +                            "addLifecycleListener",
  +                            "org.apache.catalina.LifecycleListener");
  +        
  +        digester.addObjectCreate(prefix + "ClusterListener",
  +                null, // MUST be specified in the element
  +                "className");
  +        digester.addSetProperties(prefix + "ClusterListener");
  +        digester.addSetNext(prefix + "ClusterListener",
  +                            "addClusterListener",
  +                            "org.apache.catalina.cluster.MessageListener");
           //Cluster configuration end
       }
   
  -
   }
  
  
  

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


Mime
View raw message