PathHandlers.
| Modifier and Type | Class and Description |
|---|---|
| private static class | PathHandlerFactory.
Adapts a resource found by the PathHandlerFactory to the ResourceAccessor interface so it can be used with the standard "duplicate file logic" in the ResourceAccessors |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | createResource(String resourcePath)
Creates a new resource at the specified path and returns an OutputStream for writing to it. |
| protected Class | |
| protected int | getPriority(PathHandler obj, Object... args)
Implements abstract liquibase. Returns the priority of the given object based on the passed args array. |
| public Resource | Returns: A resource, regardless of whether it exists or not.Return the resource for the given path. |
| public ResourceAccessor | |
| public OutputStream | Returns: null if resourcePath does not exist and createIfNotExists is false
Deprecated
use
openResourceOutputStream(String, OpenOptions)
Returns the outputStream from |
| public OutputStream | Returns: null if resourcePath does not exist andOpenOptions#isCreateIfNeeded() is falseReturns the outputStream from |
| PathHandlerFactory | back to summary |
|---|---|
| private PathHandlerFactory() | |
| createResource | back to summary |
|---|---|
| public OutputStream createResource(String resourcePath) throws IOException Creates a new resource at the specified path and returns an OutputStream for writing to it.
| |
| getPluginClass | back to summary |
|---|---|
| protected Class Implements abstract liquibase.
| |
| getPriority | back to summary |
|---|---|
| protected int getPriority(PathHandler obj, Object... args) Implements abstract liquibase. Doc from liquibase. Returns the priority of the given object based on the passed args array.
The args are created as part of the custom public getPlugin method in implementations are passed through
| |
| getResource | back to summary |
|---|---|
| public Resource getResource(String resourcePath) throws IOException Return the resource for the given path.
| |
| getResourceAccessor | back to summary |
|---|---|
| public ResourceAccessor getResourceAccessor(String root) throws IOException Creates a | |
| openResourceOutputStream | back to summary |
|---|---|
| public OutputStream openResourceOutputStream(String resourcePath, boolean createIfNotExists) throws IOException
Deprecated Returns the outputStream from
| |
| openResourceOutputStream | back to summary |
|---|---|
| public OutputStream openResourceOutputStream(String resourcePath, OpenOptions openOptions) throws IOException Returns the outputStream from
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| 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 |
| 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. |
| foundResource | back to summary |
|---|---|
| private final Resource foundResource | |
| location | back to summary |
|---|---|
| private final String location | |
| FoundResourceAccessor | back to summary |
|---|---|
| public FoundResourceAccessor(String location, Resource foundResource) | |
| 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
| |
| 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,
| |
| 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.
| |