Class CurrentClassloaderPluginSetupDescriptor
java.lang.Object
de.iip_ecosphere.platform.support.plugins.CurrentClassloaderPluginSetupDescriptor
- All Implemented Interfaces:
PluginSetupDescriptor
public class CurrentClassloaderPluginSetupDescriptor
extends Object
implements PluginSetupDescriptor
A default plugin setup descriptor taking the actual/parent classloader as actual one.
This descriptor is intended for plugins that do not need to load further classes or, in turn,
use the plugin mechanism for implementation.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CurrentClassloaderPluginSetupDescriptorInstance for the current class loader provided by the plugin manager.private ClassLoader -
Constructor Summary
ConstructorsConstructorDescriptionCreates a default instance usingPluginSetup.getClassLoader().Creates an instance for a specific class loader. -
Method Summary
Modifier and TypeMethodDescriptioncreateClassLoader(ClassLoader parent) Returns the class loader being responsible for loading the plugin.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.plugins.PluginSetupDescriptor
getInstallDir, getPluginDescriptors, preventDuplicates
-
Field Details
-
INSTANCE
Instance for the current class loader provided by the plugin manager. This isPluginSetup.getClassLoader(). -
loader
-
-
Constructor Details
-
CurrentClassloaderPluginSetupDescriptor
public CurrentClassloaderPluginSetupDescriptor()Creates a default instance usingPluginSetup.getClassLoader(). -
CurrentClassloaderPluginSetupDescriptor
Creates an instance for a specific class loader.- Parameters:
loader- the class loader to use, may be null thenPluginSetup.getClassLoader()is used
-
-
Method Details
-
createClassLoader
Description copied from interface:PluginSetupDescriptorReturns the class loader being responsible for loading the plugin.- Specified by:
createClassLoaderin interfacePluginSetupDescriptor- Parameters:
parent- the parent class loader with basic dependencies to use for loading this plugin- Returns:
- the class loader
-