DirectoryResourceAccessor that builds up the file roots based on the passed ClassLoader.
If you are using a ClassLoader that isn't based on local files, you will need to use a different ResourceAccessor implementation.
| Modifier and Type | Field and Description |
|---|---|
| private CompositeResourceAccessor | |
| private final ClassLoader | |
| protected SortedSet |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| protected void | configureAdditionalResourceAccessors(ClassLoader classLoader)
The classloader search logic in |
| public List | describeLocations()
Implements liquibase. Returns a description of the places this classloader will look for paths. |
| public List | getAll(String path)
Implements liquibase. Returns all |
| protected synchronized void | |
| public List | search(String
The path to lookup resources in. path, ResourceAccessor.A set of criteria for how resources should be found/filtered searchOptionsOverrides default liquibase. Returns the path to all resources contained in the given path that match the searchOptions criteria. |
| public List | search(String
The path to lookup resources in. path, 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. |
| additionalResourceAccessors | back to summary |
|---|---|
| private CompositeResourceAccessor additionalResourceAccessors | |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| description | back to summary |
|---|---|
| protected SortedSet<String> description | |
| ClassLoaderResourceAccessor | back to summary |
|---|---|
| public ClassLoaderResourceAccessor() | |
| ClassLoaderResourceAccessor | back to summary |
|---|---|
| public ClassLoaderResourceAccessor(ClassLoader classLoader) | |
| 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
| |
| configureAdditionalResourceAccessors | back to summary |
|---|---|
| protected void configureAdditionalResourceAccessors(ClassLoader classLoader) The classloader search logic in | |
| 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.
| |
| 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,
| |
| init | back to summary |
|---|---|
| protected synchronized void init() Performs the configuration of this resourceAccessor. Not done in the constructor for performance reasons, but can be called at the beginning of every public method. | |
| search | back to summary |
|---|---|
| public List Overrides default liquibase. Doc from liquibase. Returns the path to all resources contained in the given path that match the searchOptions criteria.
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.
| |
| 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.
| |