Class ResourceClasspathPluginSetupDescriptor

java.lang.Object
de.iip_ecosphere.platform.support.plugins.URLPluginSetupDescriptor
de.iip_ecosphere.platform.support.plugins.ResourceClasspathPluginSetupDescriptor
All Implemented Interfaces:
PluginSetupDescriptor

public class ResourceClasspathPluginSetupDescriptor extends URLPluginSetupDescriptor
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 Details

    • ResourceClasspathPluginSetupDescriptor

      public ResourceClasspathPluginSetupDescriptor(String resourceName, ResourceResolver... resolvers)
      Creates an instance based on loading a resource in classpath format.
      Parameters:
      resourceName - the name of the resource
      resolvers - optional further, optional on-the fly resolvers
  • Method Details

    • loadResourceSafe

      public static URL[] loadResourceSafe(String resourceName, ResourceResolver... resolvers)
      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 resource
      resolvers - optional further, optional on-the fly resolvers
      Returns:
      the URLs, may be empty