Class PlugInManager
java.lang.Object
com.vividsolutions.jump.workbench.plugin.PlugInManager
Loads plug-ins (or more precisely, Extensions), and any JAR files that they
depend on, from the plug-in directory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtensionsFolder(File dir) add an extensions folder - adds folder root to classpath - adds all contained jars to classpath - looks for extensions in jars only in folder root (to speedup start) - looks for extensions in any jar file and as class files recursively if limit-ext-lookup is 'false'voidaddJarsFolder(File dir) add all jar files in a folder recursively to classpathfindFileOrFolderInExtensionDirs(String fileOrFolder) search extension directories in the order they were added for a given file or folder return first found or null if none existsDeprecated.fetch a list of folders holding extension jars that were added during startTo access extension classes, use this ClassLoader rather than the default ClassLoader.Deprecated.voidload()static Stringmessage(Configuration configuration) static Stringname(Configuration configuration) voidsetLimitExtensionLookup(boolean limitExtensionLookup) static Stringversion(Configuration configuration)
-
Constructor Details
-
PlugInManager
- Parameters:
plugInDirectory- null to leave unspecified- Throws:
Exception
-
-
Method Details
-
setLimitExtensionLookup
public void setLimitExtensionLookup(boolean limitExtensionLookup) -
addExtensionsFolder
add an extensions folder - adds folder root to classpath - adds all contained jars to classpath - looks for extensions in jars only in folder root (to speedup start) - looks for extensions in any jar file and as class files recursively if limit-ext-lookup is 'false'- Parameters:
dir-
-
addJarsFolder
add all jar files in a folder recursively to classpath- Parameters:
dir-
-
findFileOrFolderInExtensionDirs
-
load
-
name
-
version
-
message
-
getConfigurations
-
getClassLoader
Deprecated.usegetPlugInClassLoader()insteadTo access extension classes, use this ClassLoader rather than the default ClassLoader. Extension classes will not be present in the latter. -
getPlugInClassLoader
To access extension classes, use this ClassLoader rather than the default ClassLoader. Extension classes will not be present in the latter. -
getExtensionDirs
-
getPlugInDirectory
Deprecated.get extension folder, cloned to prevent modification- Returns:
- possibly null
-
getPlugInClassLoader()instead