velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: jakarta-velocity/src/java/org/apache/velocity/runtime Runtime.java
Date Thu, 15 Mar 2001 04:42:06 GMT
geirm       01/03/14 20:42:06

  Modified:    src/java/org/apache/velocity/runtime Runtime.java
  Log:
  Added getProperty() method - will be accessed from Velocity class
  
  Revision  Changes    Path
  1.95      +13 -1     jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java
  
  Index: Runtime.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- Runtime.java	2001/03/14 21:50:27	1.94
  +++ Runtime.java	2001/03/15 04:42:06	1.95
  @@ -139,7 +139,7 @@
    * @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
    * @author <a href="mailto:jlb@houseofdistraction.com">Jeff Bowden</a>
    * @author <a href="mailto:geirm@optonline.net">Geir Magusson Jr.</a>
  - * @version $Id: Runtime.java,v 1.94 2001/03/14 21:50:27 jvanzyl Exp $
  + * @version $Id: Runtime.java,v 1.95 2001/03/15 04:42:06 geirm Exp $
    */
   public class Runtime implements RuntimeConstants
   {    
  @@ -299,6 +299,18 @@
       {
       }
       
  +    /**
  +     *  Allows an external caller to get a property.  The calling
  +     *  routine is required to know the type, as this routine
  +     *  will return an Object, as that is what properties can be.
  +     *
  +     *  @param key property to return
  +     */
  +    public static Object getProperty( String key )
  +    {
  +        return configuration.get( key );
  +    }
  +
       /**
        * Initialize Velocity properties, if the default
        * properties have not been laid down first then
  
  
  

Mime
View raw message