public class PluginsClassLoader extends URLClassLoader
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPORT_DIR
Plug-ins export directory inside the home property
|
static String |
HOME_DIR_FOLDER
Default home directory part used in addition of system user home directory : "/home/my-user" for sample.
|
static String |
HOME_DIR_PROPERTY
System property name pointing to the home directory.
|
static String |
PLUGINS_DIR
Plug-ins directory inside the home property
|
| Constructor and Description |
|---|
PluginsClassLoader()
Initialize the plug-in
URLClassLoader and the related directories. |
| Modifier and Type | Method and Description |
|---|---|
protected Path |
computeHome()
Compute the right home directory for the application from the system properties.
|
protected void |
copy(Path from,
Path dest)
Copy a resource needed to be exported from the JAR plug-in to the home.
|
protected void |
copyExportedResources(String plugin,
Path pluginFile,
URI uri)
Copy resources needed to be exported from the JAR plug-in to the home.
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static final String HOME_DIR_PROPERTY
public static final String HOME_DIR_FOLDER
public static final String PLUGINS_DIR
public static final String EXPORT_DIR
public PluginsClassLoader()
throws IOException
URLClassLoader and the related directories.IOException - exception when reading plug-ins directoryprotected void copyExportedResources(String plugin, Path pluginFile, URI uri) throws IOException
IOExceptionprotected void copy(Path from, Path dest) throws IOException
IOExceptionprotected Path computeHome()
Copyright © 2017 Gfi Informatique. All rights reserved.