
Package ca.uhn.fhir.repository
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:.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleancanLoad(IRepositoryLoader.IRepositoryRequest theRepositoryRequest) Impelmentors should return true if they can handle the given URL.loadRepository(IRepositoryLoader.IRepositoryRequest theRepositoryRequest) Construct a version ofIRepositorybased on the given URL.
-
Method Details
-
canLoad
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 ofIRepositorybased 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
-