com.bstek.dorado.core
public abstract class ContextSupport extends Context
Resource,
ResourceLoader| Constructor and Description |
|---|
ContextSupport() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.ClassLoader |
getClassLoader()
获取内部使用的
ResourceLoader
在查找资源时使用的ClassLoader。 |
Resource |
getResource(java.lang.String resourceLocation)
根据资源路径获取相应的资源描述对象。
|
protected abstract ResourceLoader |
getResourceLoader() |
Resource[] |
getResources(java.lang.String locationPattern)
根据资源路径获取相应的资源描述对象的数组。
此处的资源路径可支持通配符,因此可以返回一个以上的资源描述对象。 |
attachToThreadLocal, dettachFromThreadLocal, getAttribute, getAttribute, getCurrent, getServiceBean, removeAttribute, removeAttribute, setAttribute, setAttribute, setFailSafeContextprotected abstract ResourceLoader getResourceLoader()
public Resource getResource(java.lang.String resourceLocation)
ContextgetResource in interface ResourceLoadergetResource in class ContextresourceLocation - 资源路径Resource,
ResourceLoaderpublic Resource[] getResources(java.lang.String locationPattern) throws java.io.IOException
ContextgetResources in interface ResourceLoadergetResources in class ContextlocationPattern - 资源路径(可支持通配符)java.io.IOExceptionResource,
ResourceLoaderpublic java.lang.ClassLoader getClassLoader()
ContextResourceLoader
在查找资源时使用的ClassLoader。getClassLoader in interface ResourceLoadergetClassLoader in class ContextClassLoaderCopyright © 2001-2011 www.BSTEK.com All Rights Reserved.