KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > plugin > PluginClassLoader


1 /*
2  * Copyright (c) 2003 The Nutch Organization. All rights reserved. Use subject
3  * to the conditions in http://www.nutch.org/LICENSE.txt.
4  */

5 package net.nutch.plugin;
6 import java.net.URL JavaDoc;
7 import java.net.URLClassLoader JavaDoc;
8 /**
9  * The <code>PluginClassLoader</code> contains only classes of the runtime
10  * libraries setuped in the plugin manifest file and exported libraries of
11  * plugins that are required pluguin. Libraries can be exported or not. Not
12  * exported libraries are only used in the plugin own
13  * <code>PluginClassLoader</code>. Exported libraries are available for
14  * <code>PluginClassLoader</code> of plugins that depends on these plugins.
15  *
16  * @author joa23
17  */

18 public class PluginClassLoader extends URLClassLoader JavaDoc {
19   /**
20    * Construtor
21    *
22    * @param urls
23    * Array of urls with own libraries and all exported libraries of
24    * plugins that are required to this plugin
25    * @param parent
26    */

27   public PluginClassLoader(URL JavaDoc[] urls, ClassLoader JavaDoc parent) {
28     super(urls, parent);
29   }
30 }
31
Popular Tags