Class ClasspathFilePluginSetupDescriptor
java.lang.Object
de.iip_ecosphere.platform.support.plugins.URLPluginSetupDescriptor
de.iip_ecosphere.platform.support.plugins.ClasspathFilePluginSetupDescriptor
- All Implemented Interfaces:
PluginSetupDescriptor
Loads a plugin from a given classpath file assuming that the referenced relative URLs are in a sibling folder.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates the descriptor for the given classpath file.ClasspathFilePluginSetupDescriptor(File cpFile, boolean descriptorOnly) Creates the descriptor for the given classpath file. -
Method Summary
Modifier and TypeMethodDescriptionprotected ClassLoadercreateClassLoader(URL[] urls, ClassLoader parent) Actually creates the classloader.Returns the installation directory.Methods inherited from class de.iip_ecosphere.platform.support.plugins.URLPluginSetupDescriptor
createClassLoader, getURLs, toURL, toURL, toURLSafe, toURLSafeMethods 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
getPluginDescriptors, preventDuplicates
-
Field Details
-
cpFile
-
descriptorOnly
private boolean descriptorOnly
-
-
Constructor Details
-
ClasspathFilePluginSetupDescriptor
Creates the descriptor for the given classpath file.- Parameters:
cpFile- the classpath file
-
ClasspathFilePluginSetupDescriptor
Creates the descriptor for the given classpath file.- Parameters:
cpFile- the classpath filedescriptorOnly- load the descriptor JARs only or the full thing
-
-
Method Details
-
getInstallDir
Description copied from interface:PluginSetupDescriptorReturns the installation directory.- Returns:
- the installation directory, may be null
-
createClassLoader
Description copied from class:URLPluginSetupDescriptorActually creates the classloader.- Overrides:
createClassLoaderin classURLPluginSetupDescriptor- Parameters:
urls- the URLs to create the classloader fromparent- the parent class loader- Returns:
- the created classloader
-