Top Description Constructors Methods
liquibase.resource

public Class SearchPathResourceAccessor

extends CompositeResourceAccessor
Class Inheritance
Imports
liquibase.GlobalConfiguration, .Scope, liquibase.logging.Logger, liquibase.util.StringUtil, java.io.IOException

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.

Constructor Summary

AccessConstructor and Description
public
public
SearchPathResourceAccessor(String searchPath, ResourceAccessor...
Only uses these accessors if searchPath is null.
defaultAccessors
)

Creates itself with the given searchPath value.

Method Summary

Modifier and TypeMethod and Description
public SearchPathResourceAccessor
addResourceAccessor(String root)

Adds the given root as a new resource accessor, using PathHandlerFactory to find the right PathHandler.

Inherited from liquibase.resource.CompositeResourceAccessor:
addResourceAccessorclosedescribeLocationsgetAllremoveResourceAccessorsearchsearch

Constructor Detail

SearchPathResourceAccessorback to summary
public SearchPathResourceAccessor(ResourceAccessor... defaultAccessors)

Calls SearchPathResourceAccessor(String, ResourceAccessor...) with the current value of GlobalConfiguration#SEARCH_PATH.

SearchPathResourceAccessorback to summary
public SearchPathResourceAccessor(String searchPath, ResourceAccessor... defaultAccessors)

Creates itself with the given searchPath value. If any of the paths in GlobalConfiguration#SEARCH_PATH are invalid, an error is logged but no exception is thrown from this method.

Parameters
defaultAccessors:ResourceAccessor[]

Only uses these accessors if searchPath is null.

Method Detail

addResourceAccessorback to summary
public SearchPathResourceAccessor addResourceAccessor(String root) throws IOException

Adds the given root as a new resource accessor, using PathHandlerFactory to find the right PathHandler.