Class ResourceLoaderUtils

java.lang.Object
io.microsphere.util.BaseUtils
io.microsphere.spring.core.io.ResourceLoaderUtils

public abstract class ResourceLoaderUtils extends io.microsphere.util.BaseUtils
The utilities class for Spring ResourceLoader
Since:
1.0.0
Author:
Mercy
See Also:
  • ResourceLoader
  • Constructor Details

    • ResourceLoaderUtils

      public ResourceLoaderUtils()
  • Method Details

    • getResourceLoader

      @Nonnull public static org.springframework.core.io.ResourceLoader getResourceLoader()
      Get the instance of ResourceLoader associating the default ClassLoader
      Returns:
      non-null
    • getResourceLoader

      @Nonnull public static org.springframework.core.io.ResourceLoader getResourceLoader(@Nullable ClassLoader classLoader)
      Get the instance of ResourceLoader associating the specified ClassLoader
      Parameters:
      classLoader - nullable ClassLoader
      Returns:
      non-null
    • getResourcePatternResolver

      @Nonnull public static org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver()
      Get the instance of ResourcePatternResolver associating the default ClassLoader
      Returns:
      non-null
    • getResourcePatternResolver

      @Nonnull public static org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver(@Nullable org.springframework.core.io.ResourceLoader resourceLoader)
      Get the instance of ResourcePatternResolver from the specified ResourceLoader
      Parameters:
      resourceLoader - nullable ResourceLoader
      Returns:
      non-null
    • getClassLoader

      protected static ClassLoader getClassLoader(@Nullable org.springframework.core.io.ResourceLoader resourceLoader)