| Modifier and Type | Field and Description |
|---|---|
| private final DefaultResourceLoader | |
| private final ResourceLoader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| private String | |
| public List | describeLocations()
Implements liquibase. Returns a description of the places this classloader will look for paths. |
| protected String | |
| public List | getAll(String path)
Implements liquibase. Returns all |
| protected String | getCompletePath(String relativeTo, String path)
Returns the complete path to the resource, taking the relative path into account |
| protected Resource | |
| protected String | |
| protected boolean | |
| public List | search(String
The path to lookup resources in. searchPath, boolean Set to true and will return paths to contents in subdirectories as well. recursive)Implements liquibase. Returns the path to all resources contained in the given path. |
| fallbackResourceLoader | back to summary |
|---|---|
| private final DefaultResourceLoader fallbackResourceLoader | |
| resourceLoader | back to summary |
|---|---|
| private final ResourceLoader resourceLoader | |
| SpringResourceAccessor | back to summary |
|---|---|
| public SpringResourceAccessor(ResourceLoader resourceLoader) | |
| close | back to summary |
|---|---|
| public void close() throws Exception Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| decodeUrl | back to summary |
|---|---|
| private String decodeUrl(Resource resource, String url) throws IOException | |
| describeLocations | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Returns a description of the places this classloader will look for paths. Used in error messages and other troubleshooting cases.
| |
| finalizeSearchPath | back to summary |
|---|---|
| protected String finalizeSearchPath(String searchPath) Ensure the given searchPath is a valid searchPath. Default implementation adds "classpath:" and removes duplicated /'s and classpath:'s | |
| getAll | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Returns all
If the resourceAccessor returns multiple values, the returned List should be considered sorted for that resource accessor.
For example,
| |
| getCompletePath | back to summary |
|---|---|
| protected String getCompletePath(String relativeTo, String path) throws IOException Returns the complete path to the resource, taking the relative path into account | |
| getResource | back to summary |
|---|---|
| protected Resource getResource(String resourcePath) Looks up the given resource. | |
| getResourcePath | back to summary |
|---|---|
| protected String getResourcePath(Resource resource) Returns the lookup path to the given resource. | |
| resourceIsFile | back to summary |
|---|---|
| protected boolean resourceIsFile(Resource resource) throws IOException Return true if the given resource is a standard file. Return false if it is a directory. | |
| search | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Returns the path to all resources contained in the given path.
Multiple resources may be returned with the same path, but only if they are actually unique files.
Order is important to pay attention to, they should be returned in a user-expected manner based on this resource accessor.
| |