Class MavenResourceLoader

java.lang.Object
org.springframework.cloud.function.deployer.utils.MavenResourceLoader
All Implemented Interfaces:
org.springframework.core.io.ResourceLoader

public class MavenResourceLoader extends Object implements org.springframework.core.io.ResourceLoader
A ResourceLoader that loads MavenResources from locations of the format maven://<coordinates> where the value for "coordinates" conforms to the rules described on MavenResource.parse(String) .
Author:
Mark Fisher
  • Constructor Details

  • Method Details

    • getResource

      public org.springframework.core.io.Resource getResource(String location)
      Returns a MavenResource for the provided location.
      Specified by:
      getResource in interface org.springframework.core.io.ResourceLoader
      Parameters:
      location - the coordinates conforming to the rules described on MavenResource.parse(String). May optionally be preceded by "maven" followed by a colon and zero or more forward slashes, e.g. maven://group:artifact:version
      Returns:
      the MavenResource
    • getClassLoader

      public ClassLoader getClassLoader()
      Returns the ClassLoader for this ResourceLoader.
      Specified by:
      getClassLoader in interface org.springframework.core.io.ResourceLoader