com.bstek.dorado.core.io
public abstract class SpringResourceLoaderAdapter extends java.lang.Object implements ResourceLoader
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CLASSPATH_LOCATION_PREFIX |
protected static java.lang.String |
LOCATION_SEPARATOR |
protected static char |
PROTOCOL_SEPARATOR |
protected static java.lang.String |
WEBINF_LOCATION_PREFIX |
| Constructor and Description |
|---|
SpringResourceLoaderAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.springframework.core.io.ResourceLoader |
getAdaptee()
返回被代理的Spring的Resource对象。
|
java.lang.ClassLoader |
getClassLoader()
获取内部使用的
ResourceLoader在查找资源时使用的ClassLoader。 |
Resource |
getResource(java.lang.String resourceLocation)
根据资源路径获取相应的资源描述对象。
|
Resource[] |
getResources(java.lang.String locationPattern)
根据资源路径获取相应的资源描述对象的数组。
此处的资源路径可支持通配符,因此可以返回一个以上的资源描述对象。 |
protected java.util.List<Resource> |
getResourcesBySinglePattern(java.lang.String locationPattern) |
protected java.lang.String |
transformLocation(java.lang.String location) |
protected static final java.lang.String LOCATION_SEPARATOR
protected static final char PROTOCOL_SEPARATOR
protected static final java.lang.String CLASSPATH_LOCATION_PREFIX
protected static final java.lang.String WEBINF_LOCATION_PREFIX
protected abstract org.springframework.core.io.ResourceLoader getAdaptee()
protected java.util.List<Resource> getResourcesBySinglePattern(java.lang.String locationPattern) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String transformLocation(java.lang.String location)
public Resource getResource(java.lang.String resourceLocation)
ResourceLoadergetResource in interface ResourceLoaderresourceLocation - 资源路径Resource,
ResourceLoaderpublic Resource[] getResources(java.lang.String locationPattern) throws java.io.IOException
ResourceLoadergetResources in interface ResourceLoaderlocationPattern - 资源路径(可支持通配符)java.io.IOExceptionResource,
ResourceLoaderpublic java.lang.ClassLoader getClassLoader()
ResourceLoaderResourceLoader在查找资源时使用的ClassLoader。getClassLoader in interface ResourceLoaderClassLoaderCopyright © 2001-2011 www.BSTEK.com All Rights Reserved.