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

    Constructors
    Constructor
    Description
    LiquibaseResourceAccessor(io.micronaut.context.env.Environment environment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static List<liquibase.resource.ResourceAccessor>
    buildResourceAccessors(io.micronaut.context.env.Environment environment)
     
    List<liquibase.resource.Resource>
    getAll(String path)
     
    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, handleDuplicateFileModeLogging, 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

      public List<liquibase.resource.Resource> getAll(String path) throws IOException
      Specified by:
      getAll in interface liquibase.resource.ResourceAccessor
      Overrides:
      getAll in class liquibase.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