|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.plugin.PluginClassLoader
public class PluginClassLoader
ClassLoader for plugins. It searches the plugin directory for classes and JAR files, then constructs a class loader for the resources found. Resources are loaded as follows:
| Constructor Summary | |
|---|---|
PluginClassLoader()
Constructs a plugin loader for the given plugin directory. |
|
| Method Summary | |
|---|---|
void |
addDirectory(java.io.File directory)
Adds a directory to the class loader. |
void |
addURL(java.net.URL url)
Adds a URL to the class loader. |
void |
destroy()
Destroys this class loader. |
java.lang.ClassLoader |
getClassLoader()
Returns the URLClassloader used. |
java.util.Collection |
getURLS()
|
void |
initialize()
Initializes the class loader with all configured classpath URLs. |
java.lang.Class |
loadClass(java.lang.String name)
Load a class using this plugin class loader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginClassLoader()
throws java.lang.SecurityException
java.lang.SecurityException - if the created class loader violates
existing security constraints.| Method Detail |
|---|
public void addDirectory(java.io.File directory)
initialize() method should be called
after adding the directory to make the change take effect.
directory - the directory.public java.util.Collection getURLS()
public void addURL(java.net.URL url)
initialize() method should be called
after adding the URL to make the change take effect.
url - the url.public void initialize()
public java.lang.Class loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
name - the fully qualified name of the class to load.
java.lang.ClassNotFoundException - if the class could not be loaded by this class loader.
java.lang.SecurityException - if the custom class loader not allowed.public void destroy()
public java.lang.ClassLoader getClassLoader()
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||