- public void changed(File f) { }
- /*
- super.changed(w);
- Log.debug(this, "changed(" + w + ")");
+ private static final Hashtable hosts = new Hashtable();
+ private static boolean initted = false;
+
+ public static Host getHost(String hostname) { return (Host)hosts.get(hostname); }
+ public static Enumeration enumerateHosts() { return hosts.elements(); }
+
+ public Host(String path, String hostname, ClassLoader pcl) {
+ super(new File(path + File.separatorChar + "WEB-INF"), pcl);
+ this.hostname = hostname;
+ this.path = path;
+ }
+
+ public static void init() {
+ if (initted) return;
+ initted = true;
+ init(org.ibex.jinetd.Main.ROOT + "/host", "", 0, Main.getRootClassLoader());
+ }
+ public static void init(String path, String host, int depth, ClassLoader pcl) {