|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.core.io.DefaultResourceLocator
public class DefaultResourceLocator extends java.lang.Object
Default implementation of the ResourceLocator interface that doesn't take into account servlet loading.
Field Summary | |
---|---|
static java.lang.String |
CLOSURE_MARKER
|
static java.lang.String |
FILE_SEPARATOR
|
protected static Resource |
NULL_RESOURCE
|
static java.lang.String |
WEB_APP_DIR
|
static java.lang.String |
WILDCARD
|
protected java.util.Map |
classNameToResourceCache
|
protected java.util.List |
classSearchDirectories
|
protected ResourceLoader |
defaultResourceLoader
|
protected PathMatchingResourcePatternResolver |
patchMatchingResolver
|
protected GrailsPluginManager |
pluginManager
|
protected java.util.List |
resourceSearchDirectories
|
protected java.util.Map |
uriToResourceCache
|
protected boolean |
warDeployed
|
Method Summary | |
---|---|
Resource
|
findResourceForClassName(java.lang.String className)
|
Resource
|
findResourceForURI(java.lang.String uri)
|
protected Resource
|
findResourceInBinaryPlugins(DefaultResourceLocator.PluginResourceInfo info)
|
protected ResourceLoader
|
getDefaultResourceLoader()
|
void
|
setPluginManager(GrailsPluginManager pluginManager)
|
void
|
setResourceLoader(ResourceLoader resourceLoader)
|
void
|
setSearchLocation(java.lang.String searchLocation)
|
void
|
setSearchLocations(java.util.Collection searchLocations)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String CLOSURE_MARKER
public static final java.lang.String FILE_SEPARATOR
protected static final Resource NULL_RESOURCE
public static final java.lang.String WEB_APP_DIR
public static final java.lang.String WILDCARD
protected java.util.Map classNameToResourceCache
protected java.util.List classSearchDirectories
protected ResourceLoader defaultResourceLoader
protected PathMatchingResourcePatternResolver patchMatchingResolver
protected GrailsPluginManager pluginManager
protected java.util.List resourceSearchDirectories
protected java.util.Map uriToResourceCache
protected boolean warDeployed
Method Detail |
---|
public Resource findResourceForClassName(java.lang.String className)
public Resource findResourceForURI(java.lang.String uri)
protected Resource findResourceInBinaryPlugins(DefaultResourceLocator.PluginResourceInfo info)
protected ResourceLoader getDefaultResourceLoader()
public void setPluginManager(GrailsPluginManager pluginManager)
public void setResourceLoader(ResourceLoader resourceLoader)
public void setSearchLocation(java.lang.String searchLocation)
public void setSearchLocations(java.util.Collection searchLocations)
Groovy Documentation