Added getProperty() method - will be accessed from Velocity class
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/velocity/trunk@74503 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/java/org/apache/velocity/runtime/Runtime.java b/src/java/org/apache/velocity/runtime/Runtime.java
index 778b43d..69c9bd6 100644
--- a/src/java/org/apache/velocity/runtime/Runtime.java
+++ b/src/java/org/apache/velocity/runtime/Runtime.java
@@ -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
{
@@ -300,6 +300,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
* do so. Then proceed to process any overriding