Interface PluginSetupDescriptor
- All Known Implementing Classes:
ClasspathFilePluginSetupDescriptor,CurrentClassloaderPluginSetupDescriptor,CurrentContextPluginSetupDescriptor,FolderClasspathPluginSetupDescriptor,PluginBasedSetupDescriptor,ResourceClasspathPluginSetupDescriptor,URLPluginSetupDescriptor
public interface PluginSetupDescriptor
A descriptor to describe the presence of a plugin. Used for setting up the
PluginManager.- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptioncreateClassLoader(ClassLoader parent) Returns the class loader being responsible for loading the plugin.default FileReturns the installation directory.default Stream<PluginDescriptor> getPluginDescriptors(ClassLoader loader) Returns the plugin descriptors represented by this setup descriptor.default booleanPrevents duplicates by classloader filtering.
-
Method Details
-
createClassLoader
Returns the class loader being responsible for loading the plugin.- Parameters:
parent- the parent class loader with basic dependencies to use for loading this plugin- Returns:
- the class loader
-
getInstallDir
Returns the installation directory.- Returns:
- the installation directory, may be null
-
preventDuplicates
default boolean preventDuplicates()Prevents duplicates by classloader filtering. [testing]- Returns:
trueprevent (default),falseallow all
-
getPluginDescriptors
Returns the plugin descriptors represented by this setup descriptor.- Parameters:
loader- the class loader to use, preferably the result ofcreateClassLoader(ClassLoader)- Returns:
- the plugin descriptors
-