comment.addLine("The dispatcher is implemented with a {@link java.util.Map}.");
comment.addLine("The map keys are the method names, the values");
comment.addLine("are instances of <code>Invoker</code>.");
invoker.setType(JavaSource.INTERFACE);
JavaMethod jm = invoker.newJavaMethod("invoke", Object.class, JavaSource.PUBLIC);
comment = jm.newComment();
comment.addLine("This method creates a new instance of the class being");
comment.addLine("called, converts the parameter objects (if required)");
comment.addLine("and invokes the requested method. If required, the");
comment.addLine("result is converted also and returned.");
jm.addParam(Vector.class, "pParams");