public class PluginUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static PluginUtil |
PU |
static java.lang.String |
SYS_PROP_PLUGIN_PATH |
Modifier | Constructor and Description |
---|---|
protected |
PluginUtil()
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
protected CollectionUtil |
collUtil() |
static PluginUtil |
current()
Returns the only instance this class supports (design pattern "Singleton")
|
protected FileUtil |
fileUtil() |
java.lang.ClassLoader |
getClassLoader(java.lang.ClassLoader... suggestedClassLoaders)
Returns the first non-null classloader from the following order:
suggestedClassLoaders
The current thread's context class loader
the class loader of this class
the system class loader
or throws an IllegalStateException if no classloader can be found.
|
Classpath |
getPluginClasspath()
Returns the classpath that is used to lookup any plug-in information files.
|
public static final PluginUtil PU
public static final java.lang.String SYS_PROP_PLUGIN_PATH
protected PluginUtil()
public static PluginUtil current()
public Classpath getPluginClasspath()
public java.lang.ClassLoader getClassLoader(java.lang.ClassLoader... suggestedClassLoaders)
protected FileUtil fileUtil()
protected CollectionUtil collUtil()