avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/assembly/demo/src/java/org/apache/excalibur/playground SimpleComponent.java
Date Wed, 03 Jul 2002 02:20:00 GMT
mcconnell    2002/07/02 19:20:00

  Modified:    assembly/demo/src/java/org/apache/excalibur/playground
                        SimpleComponent.java
  Log:
  general updates
  
  Revision  Changes    Path
  1.2       +11 -2     jakarta-avalon-excalibur/assembly/demo/src/java/org/apache/excalibur/playground/SimpleComponent.java
  
  Index: SimpleComponent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/assembly/demo/src/java/org/apache/excalibur/playground/SimpleComponent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleComponent.java	1 Jul 2002 04:27:14 -0000	1.1
  +++ SimpleComponent.java	3 Jul 2002 02:20:00 -0000	1.2
  @@ -3,6 +3,8 @@
   package org.apache.excalibur.playground;
   
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
  +import org.apache.avalon.framework.service.Serviceable;
  +import org.apache.avalon.framework.service.ServiceManager;
   
   /**
    * This is a minimal demonstration component that a dependency on 
  @@ -11,8 +13,7 @@
    * @author <a href="mailto:mcconnell@osm.net">Stephen McConnell</a>
    */
   
  -public class SimpleComponent extends AbstractLogEnabled
  -implements SimpleService
  +public class SimpleComponent extends AbstractLogEnabled implements Serviceable, SimpleService
   {
   
       //=======================================================================
  @@ -24,4 +25,12 @@
           getLogger().info("hello from SimpleComponent");
       }
   
  +    //=======================================================================
  +    // Serviceable
  +    //=======================================================================
  +
  +    public void service( ServiceManager manager )
  +    {
  +        getLogger().debug("I'm being serviced!");
  +    }
   }
  
  
  

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