From 20df5146935ae0b2e3566bc46258665751f6e345 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 25 Apr 2003 15:59:48 +0000 Subject: [PATCH] Added getPrototypeByName() method to retrieve a prototype by name. --- src/helma/framework/core/Application.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index 4172653b..bc071d54 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -740,6 +740,13 @@ public final class Application implements IPathElement, Runnable { return p; } + /** + * Return the prototype with the given name, if it exists + */ + public Prototype getPrototypeByName(String name) { + return (Prototype) typemgr.prototypes.get(name); + } + /** * Return a collection containing all prototypes defined for this application */