From c18d6e561179a3a96d93a9ae8c6034115ba36923 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Thu, 15 Apr 2010 23:06:03 +0200 Subject: Change dispatching approach: handlers are now part of todoItems. Instead of dispatching the todo item in function of the DAML node's local name at todo-handling time, the appropriate todo handler subclass is now instantiated in the todo deque by dispatching the creation of the todo item to the appropriate constructor. --- org/madore/damlengine/DamlEngine.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org/madore/damlengine/DamlEngine.java') diff --git a/org/madore/damlengine/DamlEngine.java b/org/madore/damlengine/DamlEngine.java index b87b069..712f7e3 100644 --- a/org/madore/damlengine/DamlEngine.java +++ b/org/madore/damlengine/DamlEngine.java @@ -21,9 +21,9 @@ public final class DamlEngine { TodoDeque todoDeque = new TodoDeque(); HashMap options = new HashMap(); options.put("isRoot", true); - todoDeque.registerAtEnd(new TodoElement(doc.getDocumentElement(), - new HashMap(), - options)); + todoDeque.registerAtEnd(TodoElement.getTodoElement(doc.getDocumentElement(), + new HashMap(), + options)); todoDeque.dispatchLoop(); } -- cgit v1.2.3