Interface RuntimeRepositoryContextType

  • All Known Implementing Classes:
    CoffeePickRuntimeRepositoryContext

    @ConsumerType
    public interface RuntimeRepositoryContextType
    A context interface passed to repositories. This is used to provide configuration and other information to repositories at runtime, and is typically filled in by the client implementation. This interface essentially serves as a means to avoid a circular dependency between the client API and repository SPI.
    • Method Detail

      • cacheDirectory

        java.nio.file.Path cacheDirectory()
        Returns:
        The base cache directory
      • httpClient

        java.net.http.HttpClient httpClient()
        Returns:
        An HTTP client to be used for requests