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:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jeff Bowden</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">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
  
  
  

Reply via email to