cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Röthenbacher <felix.roethenbac...@wyona.com>
Subject Extending Jetty Loader class
Date Tue, 25 Oct 2005 09:45:34 GMT
Hi

Is it possible to extend the Loader class to allow passing of
resource directories to the URLClassLoader as specified in

http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLClassLoader.html

I'm trying to update the Jetty implementation to 5.1.4 for Lenya,
including support for JNDI which needs configuration files as
resources.

The changes would be:

Index: tools/src/loader/Loader.java
===================================================================
--- tools/src/loader/Loader.java        (revision 328297)
+++ tools/src/loader/Loader.java        (working copy)
@@ -59,6 +59,11 @@
                      }
                  }
              }
+            try {
+                super.addURL(repository.toURL());
+            } catch (MalformedURLException e) {
+                throw new IllegalArgumentException(e.toString());
+            }
          }
      }


Thanks, Felix


-- 
Felix Röthenbacher                  felix.roethenbacher@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

Mime
View raw message