Class URLPluginSetupDescriptor
java.lang.Object
de.iip_ecosphere.platform.support.plugins.URLPluginSetupDescriptor
- All Implemented Interfaces:
PluginSetupDescriptor
- Direct Known Subclasses:
ClasspathFilePluginSetupDescriptor,FolderClasspathPluginSetupDescriptor,ResourceClasspathPluginSetupDescriptor
Default URL-based plugin setup descriptor. Typically, a specific descriptor inherits from this class and sets
up the required information in a constructor without arguments.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionURLPluginSetupDescriptor(URL[] urls) Creates an URL plugin setup descriptor. -
Method Summary
Modifier and TypeMethodDescriptioncreateClassLoader(ClassLoader parent) Returns the class loader being responsible for loading the plugin.protected ClassLoadercreateClassLoader(URL[] urls, ClassLoader parent) Actually creates the classloader.protected URL[]getURLs()Returns the URLs.static URL[]Turns allfilestoURLinstances.static URL[]Turns allurlstoURLinstances.static URL[]Turns allfilestoURLinstances, logs errors.static URL[]Turns allurlstoURLinstances, logs errors.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
-
urls
-
-
Constructor Details
-
URLPluginSetupDescriptor
Creates an URL plugin setup descriptor.- Parameters:
urls- the URLs to load classes from- See Also:
-
-
Method Details
-
toURL
Turns allurlstoURLinstances.- Parameters:
urls- the URLs to convert- Returns:
- the converted URLs
- Throws:
IllegalArgumentException- if one of theurlshas invalid syntax
-
toURLSafe
Turns allurlstoURLinstances, logs errors.- Parameters:
urls- the URLs to convert- Returns:
- the converted URLs
- See Also:
-
toURL
Turns allfilestoURLinstances.- Parameters:
files- the files to convert- Returns:
- the converted URLs
- Throws:
MalformedURLException- if one of theurlshas invalid syntax
-
toURLSafe
Turns allfilestoURLinstances, logs errors.- Parameters:
files- the files to convert- Returns:
- the converted URLs
- See Also:
-
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
-
createClassLoader
Actually creates the classloader.- Parameters:
urls- the URLs to create the classloader fromparent- the parent class loader- Returns:
- the created classloader
-
getURLs
Returns the URLs.- Returns:
- the URLs
-