avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbenn...@apache.org
Subject cvs commit: avalon-components/facilities/db/api/src/java/org/apache/avalon/db DatabaseService.java
Date Wed, 05 May 2004 15:20:02 GMT
tbennett    2004/05/05 08:20:02

  Modified:    facilities/db/api/src/java/org/apache/avalon/db
                        DatabaseService.java
  Log:
  
  
  Revision  Changes    Path
  1.2       +18 -4     avalon-components/facilities/db/api/src/java/org/apache/avalon/db/DatabaseService.java
  
  Index: DatabaseService.java
  ===================================================================
  RCS file: /home/cvs/avalon-components/facilities/db/api/src/java/org/apache/avalon/db/DatabaseService.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DatabaseService.java	4 Apr 2004 15:00:54 -0000	1.1
  +++ DatabaseService.java	5 May 2004 15:20:02 -0000	1.2
  @@ -18,10 +18,24 @@
   
   /**
    * Defintion of the DatabaseService service contract.
  + * 
  + * @avalon.service version="1.0"
  + * 
  + * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
  + * @version $Revision$ $Date$
    */
   public interface DatabaseService {
  -	// TODO What services might database service provide?
  -	// Pooled JDBC connections will be provided by another service...
  -	// Dynamic starting/stopping?
  -	// Monitoring hooks?
  +    /**
  +     * Starts the database service.
  +     * 
  +     * @throws Exception if an error occurs while starting the service
  +     */
  +    void start() throws Exception;
  +    
  +    /**
  +     * Shuts down the database service.
  +     * 
  +     * @throws Exception if an error occurs while shutting down the service
  +     */
  +    void stop() throws Exception;
   }
  
  
  

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


Mime
View raw message