Class ResourceClasspathPluginSetupDescriptor
java.lang.Object
de.iip_ecosphere.platform.support.plugins.URLPluginSetupDescriptor
de.iip_ecosphere.platform.support.plugins.ResourceClasspathPluginSetupDescriptor
- All Implemented Interfaces:
PluginSetupDescriptor
Default resource-based plugin setup descriptor, reading the required URLs from a classpath file. Tries to resolve and
localize the individual classpath entries. Typically, a specific descriptor inherits from this class and sets up the
required information in a constructor without arguments.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
ConstructorsConstructorDescriptionResourceClasspathPluginSetupDescriptor(String resourceName, ResourceResolver... resolvers) Creates an instance based on loading a resource in classpath format. -
Method Summary
Modifier and TypeMethodDescriptionstatic URL[]loadResourceSafe(String resourceName, ResourceResolver... resolvers) Loads a resource in classpath format and returns the specified classpath entries as URLs.Methods inherited from class de.iip_ecosphere.platform.support.plugins.URLPluginSetupDescriptor
createClassLoader, 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
getInstallDir, getPluginDescriptors, preventDuplicates
-
Constructor Details
-
ResourceClasspathPluginSetupDescriptor
Creates an instance based on loading a resource in classpath format.- Parameters:
resourceName- the name of the resourceresolvers- optional further, optional on-the fly resolvers
-
-
Method Details
-
loadResourceSafe
Loads a resource in classpath format and returns the specified classpath entries as URLs. Tries to resolve and localize the individual classpath entries. Logs errors and exceptions.- Parameters:
resourceName- the name of the resourceresolvers- optional further, optional on-the fly resolvers- Returns:
- the URLs, may be empty
-