avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/simpleserver/src/java/org/apache/avalon/simpleserver SimpleApplicationListener.java SimpleBlockListener.java
Date Sat, 26 Jan 2002 08:05:17 GMT
hammant     02/01/26 00:05:17

  Modified:    apps/simpleserver/src/conf simpleserver-assembly.xml
               apps/simpleserver/src/java/org/apache/avalon/simpleserver
                        SimpleBlockListener.java
  Added:       apps/simpleserver/src/java/org/apache/avalon/simpleserver
                        SimpleApplicationListener.java
  Log:
  block listener changed to application listener
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-avalon-cornerstone/apps/simpleserver/src/conf/simpleserver-assembly.xml
  
  Index: simpleserver-assembly.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/simpleserver/src/conf/simpleserver-assembly.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- simpleserver-assembly.xml	21 Nov 2001 17:26:00 -0000	1.1
  +++ simpleserver-assembly.xml	26 Jan 2002 08:05:17 -0000	1.2
  @@ -2,7 +2,7 @@
   
   <assembly>
   
  -  <block-listener class="org.apache.avalon.simpleserver.SimpleBlockListener" 
  +  <listener class="org.apache.avalon.simpleserver.SimpleBlockListener" 
                     name="simple-listener" />
   
     <!-- The Storage block -->
  
  
  
  1.4       +1 -1      jakarta-avalon-cornerstone/apps/simpleserver/src/java/org/apache/avalon/simpleserver/SimpleBlockListener.java
  
  Index: SimpleBlockListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/simpleserver/src/java/org/apache/avalon/simpleserver/SimpleBlockListener.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleBlockListener.java	15 Jan 2002 10:53:34 -0000	1.3
  +++ SimpleBlockListener.java	26 Jan 2002 08:05:17 -0000	1.4
  @@ -14,7 +14,7 @@
   import org.apache.avalon.framework.configuration.ConfigurationException;
   
   /**
  - * This is a simple listener to demonstrate deployment.
  + * This is a simple block listener to demonstrate deployment.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    */
  
  
  
  1.1                  jakarta-avalon-cornerstone/apps/simpleserver/src/java/org/apache/avalon/simpleserver/SimpleApplicationListener.java
  
  Index: SimpleApplicationListener.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE file.
   */
  package org.apache.avalon.simpleserver;
  
  import org.apache.avalon.phoenix.ApplicationListener;
  import org.apache.avalon.phoenix.ApplicationEvent;
  
  /**
   * This is a simple application listener to demonstrate deployment.
   *
   * @author <a href="mailto:Paul_Hammant@yahoo.com">Paul Hammant</a>*
   */
  public class SimpleApplicationListener extends SimpleBlockListener implements ApplicationListener
  {
      public void applicationStarting(ApplicationEvent event) throws Exception {
          System.out.println("'" + event.getName() + "' applicationStarting");
      }
  
      public void applicationStarted() {
          System.out.println("applicationStarted");
      }
  
      public void applicationStopping() {
          System.out.println("applicationStopping");
      }
  
      public void applicationStopped() {
          System.out.println("applicationStopped");
      }
  
      public void applicationFailure(Exception e) {
          System.out.println("applicationFailure");
      }
  }
  
  
  

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


Mime
View raw message