From 967f99b60c07ffc15a147c04adb27a6bfdaf0995 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 17 Apr 2005 19:57:07 +0000 Subject: [PATCH] Allow the class loader to which we fall back to be configured in an already created resource manager. Due to the way the Handler stuff is set up, only the first resource manager ever created in a JVM will be wired up to handle resource: URLs and thus we have to be careful to only ever create one resource manager. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3499 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/resource/ResourceManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java/com/threerings/resource/ResourceManager.java b/src/java/com/threerings/resource/ResourceManager.java index d2a4a4633..1b4bd34a7 100644 --- a/src/java/com/threerings/resource/ResourceManager.java +++ b/src/java/com/threerings/resource/ResourceManager.java @@ -372,6 +372,15 @@ public class ResourceManager return _loader; } + /** + * Configures the class loader this manager should use to load + * resources if/when there are no bundles from which to load them. + */ + public void setClassLoader (ClassLoader loader) + { + _loader = loader; + } + /** * Fetches a resource from the local repository. *