Package liquibase.resource
Class SearchPathResourceAccessor
java.lang.Object
liquibase.AbstractExtensibleObject
liquibase.resource.AbstractResourceAccessor
liquibase.resource.CompositeResourceAccessor
liquibase.resource.SearchPathResourceAccessor
- All Implemented Interfaces:
AutoCloseable,Cloneable,ExtensibleObject,ResourceAccessor
This should generally be the overall
ResourceAccessor used by integrations.
It aggregates integration-specific resource accessors with the standard GlobalConfiguration.SEARCH_PATH setting
to create the overall "search path" for Liquibase.-
Nested Class Summary
Nested classes/interfaces inherited from interface liquibase.resource.ResourceAccessor
ResourceAccessor.NotFoundResource, ResourceAccessor.SearchOptions -
Constructor Summary
ConstructorsConstructorDescriptionSearchPathResourceAccessor(String searchPath, ResourceAccessor... defaultAccessors) Creates itself with the given searchPath value.SearchPathResourceAccessor(ResourceAccessor... defaultAccessors) CallsSearchPathResourceAccessor(String, ResourceAccessor...)with the current value ofGlobalConfiguration.SEARCH_PATH. -
Method Summary
Modifier and TypeMethodDescriptionaddResourceAccessor(String root) Adds the given root as a new resource accessor, usingPathHandlerFactoryto find the rightPathHandler.Methods inherited from class liquibase.resource.CompositeResourceAccessor
addResourceAccessor, close, describeLocations, getAll, removeResourceAccessor, search, searchMethods inherited from class liquibase.AbstractExtensibleObject
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface liquibase.resource.ResourceAccessor
get, getExisting, handleDuplicateFileModeLogging, list, openStream, openStreams
-
Constructor Details
-
SearchPathResourceAccessor
CallsSearchPathResourceAccessor(String, ResourceAccessor...)with the current value ofGlobalConfiguration.SEARCH_PATH. -
SearchPathResourceAccessor
Creates itself with the given searchPath value. If any of the paths inGlobalConfiguration.SEARCH_PATHare invalid, an error is logged but no exception is thrown from this method.- Parameters:
defaultAccessors- Only uses these accessors if searchPath is null.
-
-
Method Details
-
addResourceAccessor
Adds the given root as a new resource accessor, usingPathHandlerFactoryto find the rightPathHandler.- Throws:
IOException
-