geirm 01/05/20 13:12:10
Modified: xdocs developer-guide.xml
docs developer-guide.html
Log:
removed reference to Runtime, and updated all Event stuff to
reflect new package
Revision Changes Path
1.45 +8 -9 jakarta-velocity/xdocs/developer-guide.xml
Index: developer-guide.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity/xdocs/developer-guide.xml,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- developer-guide.xml 2001/05/19 16:58:29 1.44
+++ developer-guide.xml 2001/05/20 20:12:08 1.45
@@ -331,7 +331,6 @@
<source><![CDATA[
import java.io.StringWriter;
import org.apache.velocity.VelocityContext;
-import org.apache.velocity.runtime.Runtime;
import org.apache.velocity.Template;
import org.apache.velocity.app.Velocity;
@@ -345,7 +344,7 @@
try
{
- template = Runtime.getTemplate("mytemplate.vm");
+ template = Velocity.getTemplate("mytemplate.vm");
}
catch( ResourceNotFoundException rnfe )
{
@@ -1299,7 +1298,7 @@
</p>
<p>
-<i><code>org.apache.velocity.context.NullSetEventHandler</code></i>
+<i><code>org.apache.velocity.app.event.NullSetEventHandler</code></i>
<blockquote>
When a #set() results in a null assignment, this is normally
@@ -1314,7 +1313,7 @@
</pre>
</blockquote>
-<i><code>org.apache.velocity.context.ReferenceInsertionEventHandler</code></i>
+<i><code>org.apache.velocity.app.event.ReferenceInsertionEventHandler</code></i>
<blockquote>
A <code>ReferenceInsertionEventHandler</code> allows the
developer to intercept each write of a reference ($foo) value to the output
@@ -1327,7 +1326,7 @@
</pre>
</blockquote>
-<i><code>org.apache.velocity.context.MethodExceptionEventHandler</code></i>
+<i><code>org.apache.velocity.app.event.MethodExceptionEventHandler</code></i>
<blockquote>
When a user-supplied method throws an exception, the
<code>MethodExceptionEventHandler</code> is invoked with the Class, method name
@@ -1356,10 +1355,10 @@
...
-import org.apache.velocity.context.EventCartridge;
-import org.apache.velocity.context.ReferenceInsertionEventHandler;
-import org.apache.velocity.context.MethodExceptionEventHandler;
-import org.apache.velocity.context.NullSetEventHandler;
+import org.apache.velocity.app.event.EventCartridge;
+import org.apache.velocity.app.event.ReferenceInsertionEventHandler;
+import org.apache.velocity.app.event.MethodExceptionEventHandler;
+import org.apache.velocity.app.event.NullSetEventHandler;
...
1.61 +8 -9 jakarta-velocity/docs/developer-guide.html
Index: developer-guide.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/developer-guide.html,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- developer-guide.html 2001/05/19 16:58:32 1.60
+++ developer-guide.html 2001/05/20 20:12:10 1.61
@@ -459,7 +459,6 @@
<td bgcolor="#ffffff"><pre>
import java.io.StringWriter;
import org.apache.velocity.VelocityContext;
-import org.apache.velocity.runtime.Runtime;
import org.apache.velocity.Template;
import org.apache.velocity.app.Velocity;
@@ -473,7 +472,7 @@
try
{
- template = Runtime.getTemplate("mytemplate.vm");
+ template = Velocity.getTemplate("mytemplate.vm");
}
catch( ResourceNotFoundException rnfe )
{
@@ -1628,7 +1627,7 @@
<code>org.apache.velocity.context</code> package. [note : they don't belong there ]
</p>
<p>
-<i><code>org.apache.velocity.context.NullSetEventHandler</code></i>
+<i><code>org.apache.velocity.app.event.NullSetEventHandler</code></i>
<blockquote>
When a #set() results in a null assignment, this is normally
@@ -1643,7 +1642,7 @@
</pre>
</blockquote>
-<i><code>org.apache.velocity.context.ReferenceInsertionEventHandler</code></i>
+<i><code>org.apache.velocity.app.event.ReferenceInsertionEventHandler</code></i>
<blockquote>
A <code>ReferenceInsertionEventHandler</code> allows the
developer to intercept each write of a reference ($foo) value to the output
@@ -1656,7 +1655,7 @@
</pre>
</blockquote>
-<i><code>org.apache.velocity.context.MethodExceptionEventHandler</code></i>
+<i><code>org.apache.velocity.app.event.MethodExceptionEventHandler</code></i>
<blockquote>
When a user-supplied method throws an exception, the
<code>MethodExceptionEventHandler</code> is invoked with the Class, method name
@@ -1691,10 +1690,10 @@
...
-import org.apache.velocity.context.EventCartridge;
-import org.apache.velocity.context.ReferenceInsertionEventHandler;
-import org.apache.velocity.context.MethodExceptionEventHandler;
-import org.apache.velocity.context.NullSetEventHandler;
+import org.apache.velocity.app.event.EventCartridge;
+import org.apache.velocity.app.event.ReferenceInsertionEventHandler;
+import org.apache.velocity.app.event.MethodExceptionEventHandler;
+import org.apache.velocity.app.event.NullSetEventHandler;
...