Package io.micronaut.liquibase
Class LiquibaseResourceAccessor
java.lang.Object
liquibase.AbstractExtensibleObject
liquibase.resource.AbstractResourceAccessor
liquibase.resource.CompositeResourceAccessor
io.micronaut.liquibase.LiquibaseResourceAccessor
- All Implemented Interfaces:
AutoCloseable
,Cloneable
,liquibase.ExtensibleObject
,liquibase.resource.ResourceAccessor
@Singleton
public class LiquibaseResourceAccessor
extends liquibase.resource.CompositeResourceAccessor
Micronaut bean implementing
ResourceAccessor
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Nested Class Summary
Nested classes/interfaces inherited from interface liquibase.resource.ResourceAccessor
liquibase.resource.ResourceAccessor.NotFoundResource, liquibase.resource.ResourceAccessor.SearchOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static List<liquibase.resource.ResourceAccessor>
buildResourceAccessors
(io.micronaut.context.env.Environment environment) List<liquibase.resource.Resource>
list
(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) Methods inherited from class liquibase.resource.CompositeResourceAccessor
addResourceAccessor, close, describeLocations, removeResourceAccessor, search, search
Methods inherited from class liquibase.AbstractExtensibleObject
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface liquibase.resource.ResourceAccessor
get, getExisting, openStream, openStreams
-
Constructor Details
-
LiquibaseResourceAccessor
public LiquibaseResourceAccessor(io.micronaut.context.env.Environment environment) - Parameters:
environment
- The Micronaut environment
-
-
Method Details
-
list
public SortedSet<String> list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) throws IOException - Throws:
IOException
-
getAll
- Specified by:
getAll
in interfaceliquibase.resource.ResourceAccessor
- Overrides:
getAll
in classliquibase.resource.CompositeResourceAccessor
- Throws:
IOException
-
buildResourceAccessors
protected static List<liquibase.resource.ResourceAccessor> buildResourceAccessors(io.micronaut.context.env.Environment environment) - Parameters:
environment
- The environment- Returns:
- A list of
ResourceAccessor
to look for migrations
-