You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2001/03/31 18:08:41 UTC

cvs commit: jakarta-turbine/src/java/org/apache/turbine/services Service.java

jvanzyl     01/03/31 08:08:41

  Modified:    src/java/org/apache/turbine/services Service.java
  Log:
  - adding getConfiguration() to the interface.
  
  Revision  Changes    Path
  1.6       +14 -1     jakarta-turbine/src/java/org/apache/turbine/services/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/services/Service.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Service.java	2001/03/06 06:11:47	1.5
  +++ Service.java	2001/03/31 16:08:40	1.6
  @@ -57,6 +57,8 @@
   // Java stuff.
   import java.util.*;
   
  +import org.apache.velocity.runtime.configuration.Configuration;
  +
   /**
    * <code>Services</code> are <code>Initables</code> that have a name,
    * and a set of properties.
  @@ -66,7 +68,7 @@
    * @author <a href="mailto:burton@apache.org">Kevin Burton</a>
    * @author <a href="mailto:krzewski@e-point.pl">Rafal Krzewski</a>
    * @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
  - * @version $Id: Service.java,v 1.5 2001/03/06 06:11:47 chrise Exp $
  + * @version $Id: Service.java,v 1.6 2001/03/31 16:08:40 jvanzyl Exp $
    */
   public interface Service 
       extends Initable
  @@ -102,4 +104,15 @@
        * @return The properties of this Service.
        */
       public Properties getProperties();
  +
  +    /**
  +     * Returns the Configuration of this Service.  Every Service has at
  +     * least one property, which is "classname", containing the name
  +     * of the class implementing this service.  Note that the service
  +     * may chose to alter its configuration, therefore they may be
  +     * different from those returned by ServiceBroker.
  +     *
  +     * @return The Configuration of this Service.
  +     */
  +    public Configuration getConfiguration();    
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org