geirm       01/03/14 20:46:33

  Modified:    src/java/org/apache/velocity/app Velocity.java
  Log:
  Added getProperty() method to allow symmetric access to properties
  
  Revision  Changes    Path
  1.6       +13 -1     jakarta-velocity/src/java/org/apache/velocity/app/Velocity.java
  
  Index: Velocity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/app/Velocity.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Velocity.java     2001/03/15 02:24:00     1.5
  +++ Velocity.java     2001/03/15 04:46:32     1.6
  @@ -96,7 +96,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
    * @author <a href="[EMAIL PROTECTED]">Christoph Reck</a>
    * @author <a href="[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: Velocity.java,v 1.5 2001/03/15 02:24:00 geirm Exp $
  + * @version $Id: Velocity.java,v 1.6 2001/03/15 04:46:32 geirm Exp $
    */
   
   public class Velocity implements RuntimeConstants
  @@ -152,6 +152,18 @@
       public static void setProperty(String key, Object value)
       {
           Runtime.setProperty(key,value);
  +    }
  +
  +    /**
  +     *  Get a Velocity Runtime property.
  +     *
  +     *  @param key property to retrieve
  +     *  @return property value or null if the property
  +     *        not currently set
  +     */
  +    public static Object getProperty( String key )
  +    {
  +        return Runtime.getProperty( key );
       }
   
       /**
  
  
  

Reply via email to