Interface IRepositoryLoader


@Beta public interface IRepositoryLoader
Service provider interface for loading repositories based on a URL. Unstable API. Subject to change in future releases.

Implementors will receive the url parsed into IRepositoryRequest, and dispatch of the subScheme property. E.g. The InMemoryFhirRepositoryLoader will handle URLs that start with fhir-repository:memory:.

  • Method Details

    • canLoad

      boolean canLoad(@Nonnull IRepositoryLoader.IRepositoryRequest theRepositoryRequest)
      Impelmentors should return true if they can handle the given URL.
      Parameters:
      theRepositoryRequest - containing the URL to check
      Returns:
      true if supported
    • loadRepository

      @Nonnull IRepository loadRepository(@Nonnull IRepositoryLoader.IRepositoryRequest theRepositoryRequest)
      Construct a version of IRepository based on the given URL. Implementors can assume that the request passed the canLoad() check.
      Parameters:
      theRepositoryRequest - the details of the repository to load.
      Returns:
      a repository instance