Class PluginBasedSetupDescriptor
java.lang.Object
de.iip_ecosphere.platform.support.plugins.PluginBasedSetupDescriptor
- All Implemented Interfaces:
PluginSetupDescriptor
Loads a plugin based on the classloader of an already loaded plugin. Requires some form of ordered plugin loading!
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPluginBasedSetupDescriptor(Class<?> pluginCls) Creates a setup descriptor for a given plugin class (factory, descriptor, etc).PluginBasedSetupDescriptor(String pluginId) Creates a setup descriptor for a given plugin id. -
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
-
pluginCls
-
pluginId
-
-
Constructor Details
-
PluginBasedSetupDescriptor
Creates a setup descriptor for a given plugin id.- Parameters:
pluginId- the plugin id
-
PluginBasedSetupDescriptor
Creates a setup descriptor for a given plugin class (factory, descriptor, etc).- Parameters:
pluginCls- the class determining the plugin
-
-
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
-