+++ /dev/null
-package org.ibex.jinetd;
-import org.ibex.util.*;
-import java.io.*;
-import java.util.*;
-import java.lang.reflect.*;
-
-public class Host extends Loader {
-
- final String hostname;
- public Host(String path, String hostname) { super(path); this.hostname = hostname; }
-
- public void changed(Watched w) {
- super.changed(w);
- Log.error(this, "changed(" + w + ")");
- try {
- ClassLoader cl = getClassLoader();
- if (cl == null) return;
- Class c = cl.loadClass("Main");
- if (c == null) return;
- Method m = c.getMethod("main", new Class[] { });
- m.invoke(null, new Object[] { });
- } catch (Exception e) {
- Log.warn(this, "nope");
- }
- }
-}