类 ResourceLoaderUtils
- java.lang.Object
-
- io.microsphere.util.BaseUtils
-
- io.microsphere.spring.util.ResourceLoaderUtils
-
public abstract class ResourceLoaderUtils extends io.microsphere.util.BaseUtils
The utilities class for SpringResourceLoader
- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
ResourceLoader
-
-
构造器概要
构造器 构造器 说明 ResourceLoaderUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 protected static java.lang.ClassLoader
getClassLoader(org.springframework.core.io.ResourceLoader resourceLoader)
static org.springframework.core.io.ResourceLoader
getResourceLoader()
Get the instance ofResourceLoader
associatingthe default ClassLoader
static org.springframework.core.io.ResourceLoader
getResourceLoader(java.lang.ClassLoader classLoader)
Get the instance ofResourceLoader
associating the specified ClassLoaderstatic org.springframework.core.io.support.ResourcePatternResolver
getResourcePatternResolver()
Get the instance ofResourcePatternResolver
associatingthe default ClassLoader
static org.springframework.core.io.support.ResourcePatternResolver
getResourcePatternResolver(org.springframework.core.io.ResourceLoader resourceLoader)
Get the instance ofResourcePatternResolver
from the specifiedResourceLoader
-
-
-
方法详细资料
-
getResourceLoader
@NonNull public static org.springframework.core.io.ResourceLoader getResourceLoader()
Get the instance ofResourceLoader
associatingthe default ClassLoader
- 返回:
- non-null
-
getResourceLoader
@NonNull public static org.springframework.core.io.ResourceLoader getResourceLoader(@Nullable java.lang.ClassLoader classLoader)
Get the instance ofResourceLoader
associating the specified ClassLoader- 参数:
classLoader
- nullableClassLoader
- 返回:
- non-null
-
getResourcePatternResolver
@NonNull public static org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver()
Get the instance ofResourcePatternResolver
associatingthe 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 ofResourcePatternResolver
from the specifiedResourceLoader
- 参数:
resourceLoader
- nullableResourceLoader
- 返回:
- non-null
-
getClassLoader
protected static java.lang.ClassLoader getClassLoader(@Nullable org.springframework.core.io.ResourceLoader resourceLoader)
-
-