Class ResourceContext

java.lang.Object
ac.simons.neo4j.migrations.core.ResourceContext

public final class ResourceContext extends Object
A context in which a resource with a given URL was discovered.
Since:
1.7.0
Author:
Michael J. Simons
  • Method Details

    • of

      public static ResourceContext of(URL url, MigrationsConfig config)
      Static factory method, might be helpful during tests of additional providers
      Parameters:
      url - The url of the given resource
      config - The config used during discovery
      Returns:
      A new resource context
    • getUrl

      public URL getUrl()
      Returns:
      the resources URL
    • getIdentifier

      public String getIdentifier()
      Returns:
      The identifier of the underlying resource
      Since:
      1.8.0
    • getConfig

      public MigrationsConfig getConfig()
      Returns:
      the configuration with which the resource has been discovered