类 ResourceLoaderUtils


  • public abstract class ResourceLoaderUtils
    extends io.microsphere.util.BaseUtils
    The utilities class for Spring ResourceLoader
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    ResourceLoader
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      protected static java.lang.ClassLoader getClassLoader​(org.springframework.core.io.ResourceLoader resourceLoader)  
      static org.springframework.core.io.ResourceLoader getResourceLoader()
      Get the instance of ResourceLoader associating the default ClassLoader
      static org.springframework.core.io.ResourceLoader getResourceLoader​(java.lang.ClassLoader classLoader)
      Get the instance of ResourceLoader associating the specified ClassLoader
      static org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver()
      Get the instance of ResourcePatternResolver associating the default ClassLoader
      static org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver​(org.springframework.core.io.ResourceLoader resourceLoader)
      Get the instance of ResourcePatternResolver from the specified ResourceLoader
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ResourceLoaderUtils

        public ResourceLoaderUtils()
    • 方法详细资料

      • getResourceLoader

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

        @Nonnull
        public static org.springframework.core.io.ResourceLoader getResourceLoader​(@Nullable
                                                                                   java.lang.ClassLoader classLoader)
        Get the instance of ResourceLoader associating the specified ClassLoader
        参数:
        classLoader - nullable ClassLoader
        返回:
        non-null
      • getResourcePatternResolver

        @Nonnull
        public static org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver()
        Get the instance of ResourcePatternResolver associating the default ClassLoader
        返回:
        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
        参数:
        resourceLoader - nullable ResourceLoader
        返回:
        non-null
      • getClassLoader

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