public class DefaultResourceLocator extends java.lang.Object implements PluginManagerAware, ResourceLocator, org.springframework.context.ResourceLoaderAware
Default ResourceLocator implementation that doesn't take into account servlet loading.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
CLOSURE_MARKER |
|
static java.lang.String |
FILE_SEPARATOR |
|
protected static org.springframework.core.io.Resource |
NULL_RESOURCE |
|
static java.lang.String |
WEB_APP_DIR |
|
static java.lang.String |
WILDCARD |
|
protected java.util.Map<java.lang.String, org.springframework.core.io.Resource> |
classNameToResourceCache |
|
protected java.util.List<java.lang.String> |
classSearchDirectories |
|
protected org.springframework.core.io.ResourceLoader |
defaultResourceLoader |
|
protected org.springframework.core.io.support.PathMatchingResourcePatternResolver |
patchMatchingResolver |
|
protected GrailsPluginManager |
pluginManager |
|
protected java.util.List<java.lang.String> |
resourceSearchDirectories |
|
protected java.util.Map<java.lang.String, org.springframework.core.io.Resource> |
uriToResourceCache |
|
protected boolean |
warDeployed |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
accept(java.io.File file) |
|
public org.springframework.core.io.Resource |
findResourceForClassName(java.lang.String className) |
|
public org.springframework.core.io.Resource |
findResourceForURI(java.lang.String uri) |
|
protected org.springframework.core.io.Resource |
findResourceInBinaryPlugins(DefaultResourceLocator.PluginResourceInfo info) |
|
protected org.springframework.core.io.ResourceLoader |
getDefaultResourceLoader() |
|
public void |
setPluginManager(GrailsPluginManager pluginManager) |
|
public void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
|
public void |
setSearchLocation(java.lang.String searchLocation) |
|
public void |
setSearchLocations(java.util.Collection<java.lang.String> searchLocations) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |