X-Git-Url: http://git.megacz.com/?p=org.ibex.jinetd.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjinetd%2FLoader.java;h=7f32fd6fb701cb0d6571a3884ab5c50033091023;hp=96093bd5e35621476b634f826f99ea6bae462014;hb=df13dadbee1a679518ccebbf417a11ec17c77aec;hpb=99f8fd894be14226a64f1889657edf863edf8afb diff --git a/src/org/ibex/jinetd/Loader.java b/src/org/ibex/jinetd/Loader.java index 96093bd..7f32fd6 100644 --- a/src/org/ibex/jinetd/Loader.java +++ b/src/org/ibex/jinetd/Loader.java @@ -1,4 +1,9 @@ +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the Apache Public Source License 2.0 ("the License"). +// You may not use this file except in compliance with the License. + package org.ibex.jinetd; +import org.ibex.io.*; import org.ibex.util.*; import java.io.*; import java.util.*; @@ -9,39 +14,13 @@ import java.util.zip.*; /** represents a file or directory which is scanned for updates */ public class Loader extends Watcher { - ClassLoader parentClassLoader = null; - static final ClassLoader mycl = Loader.class.getClassLoader(); - - protected ThreadGroup tg = new ThreadGroup(getAbsolutePath()); + public /*synchronized*/ void scan() throws IOException { super.scan(); } - public Loader(String path) { super(path); } - //public Loader(String path, ClassLoader pcl) { super(path); this.parentClassLoader = pcl; } - - private TreeClassLoader classloader = null; - public synchronized void scan() throws IOException { super.scan(); } - public synchronized ClassLoader getClassLoader() { - ClassLoader classloader = this.classloader; - if (classloader == null) { - String s = getClassPath(); - StringTokenizer st = new StringTokenizer(s, File.pathSeparatorChar+""); - URL[] urls = new URL[st.countTokens()]; - try { - for(int i=0; i 0) { + Log.warn(this, " annoying threads:"); + Thread[] annoying = new Thread[tg.activeCount()]; + tg.enumerate(annoying, true); + for(int i=0; i