You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by tb...@apache.org on 2004/05/05 17:20:02 UTC

cvs commit: avalon-components/facilities/db/api/src/java/org/apache/avalon/db DatabaseService.java

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