1 package org.ibex.jinetd;
2 import org.ibex.util.*;
5 import java.lang.reflect.*;
7 public class Host extends Loader {
10 public Host(String path, String hostname) { super(path); this.hostname = hostname; }
12 public void changed(Watched w) {
14 Log.debug(this, "changed(" + w + ")");
16 ClassLoader cl = getClassLoader();
17 if (cl == null) return;
18 Class c = cl.loadClass("Main");
19 if (c == null) return;
20 Method m = c.getMethod("main", new Class[] { });
21 m.invoke(null, new Object[] { });
22 } catch (Exception e) {
23 Log.warn(this, "nope");