Package io.microsphere.spring.core.io
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ClassLoader
getClassLoader
(org.springframework.core.io.ResourceLoader resourceLoader) static org.springframework.core.io.ResourceLoader
Get the instance ofResourceLoader
associatingthe default ClassLoader
static org.springframework.core.io.ResourceLoader
getResourceLoader
(ClassLoader classLoader) Get the instance ofResourceLoader
associating the specified ClassLoaderstatic org.springframework.core.io.support.ResourcePatternResolver
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
-
Constructor Details
-
ResourceLoaderUtils
public ResourceLoaderUtils()
-
-
Method Details
-
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 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 ClassLoader getClassLoader(@Nullable org.springframework.core.io.ResourceLoader resourceLoader)
-