User: mnf999  
  Date: 01/12/18 22:23:04

  Modified:    src/main/org/jboss/system Service.java
  Log:
  Back by popular demand, init as create(), rock and roll
  
  Revision  Changes    Path
  1.4       +20 -3     jboss/src/main/org/jboss/system/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/Service.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Service.java      2001/11/12 06:52:17     1.3
  +++ Service.java      2001/12/19 06:23:04     1.4
  @@ -10,7 +10,7 @@
    * The Service interface for the JBOSS-SYSTEM.
    *      
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>.
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    *
    * <p><b>20010830 marc fleury:</b>
    * <ul>
  @@ -20,14 +20,31 @@
    * <ul>
    *   <li>removed init and destroy methods
    * </ul>
  + *  <p><b>20011208 marc fleury:</b>
  + * <ul>
  + *   <li>init and destroy were put back by david
  + *   <li>init becomes create
  + * </ul>
   
    */
   public interface Service
   {
  +   /**
  +    * create the service, do expensive operations etc 
  +    */
  +   void create() throws Exception;
  +   
  +   /**
  +    * start the service, create is already called
  +    */
      void start() throws Exception;
      
  +   /**
  +    * stop the service
  +    */
      void stop();
  -   //well I tried... maybe later.
  -   void init() throws Exception;
  +   /**
  +    * destroy the service, tear down 
  +    */
      void destroy();
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to