You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2005/10/09 14:14:19 UTC

svn commit: r307406 - /jakarta/velocity/core/trunk/examples/context_example/DBContextTest.java

Author: henning
Date: Sun Oct  9 05:14:16 2005
New Revision: 307406

URL: http://svn.apache.org/viewcvs?rev=307406&view=rev
Log:
Remove deprecated Runtime References, replace them with RuntimeSingleton

Modified:
    jakarta/velocity/core/trunk/examples/context_example/DBContextTest.java

Modified: jakarta/velocity/core/trunk/examples/context_example/DBContextTest.java
URL: http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/examples/context_example/DBContextTest.java?rev=307406&r1=307405&r2=307406&view=diff
==============================================================================
--- jakarta/velocity/core/trunk/examples/context_example/DBContextTest.java (original)
+++ jakarta/velocity/core/trunk/examples/context_example/DBContextTest.java Sun Oct  9 05:14:16 2005
@@ -25,7 +25,7 @@
 
 import org.apache.velocity.Template;
 
-import org.apache.velocity.runtime.Runtime;
+import org.apache.velocity.runtime.RuntimeSingleton;
 
 /**
  *  the ultimate in silliness...
@@ -43,9 +43,9 @@
     {
         try
         {
-            Runtime.init( new Properties() );
+            RuntimeSingleton.init( new Properties() );
  
-            Template template = Runtime.getTemplate(templateFile);
+            Template template = RuntimeSingleton.getTemplate(templateFile);
 
             DBContext dbc = new DBContext();
 
@@ -64,7 +64,7 @@
         }
         catch( Exception e )
         {
-            Runtime.error(e);
+            RuntimeSingleton.error(e);
         }
     }
 



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