Package io.microsphere.spring.util
Class 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
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
ResourceLoader
-
-
Constructor Summary
Constructors Constructor Description ResourceLoaderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
Method Detail
-
getResourceLoader
@NonNull public static org.springframework.core.io.ResourceLoader getResourceLoader()
Get the instance ofResourceLoader
associatingthe default ClassLoader
- Returns:
- 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- Parameters:
classLoader
- nullableClassLoader
- Returns:
- non-null
-
getResourcePatternResolver
@NonNull public static org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver()
Get the instance ofResourcePatternResolver
associatingthe 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 ofResourcePatternResolver
from the specifiedResourceLoader
- Parameters:
resourceLoader
- nullableResourceLoader
- Returns:
- non-null
-
getClassLoader
protected static java.lang.ClassLoader getClassLoader(@Nullable org.springframework.core.io.ResourceLoader resourceLoader)
-
-