Interface Repository

All Known Subinterfaces:
LocalRepository, RemoteRepository
All Known Implementing Classes:
DefaultLocalRepository, DefaultRemoteRepository

@Experimental @Immutable public interface Repository
A repository holds artifacts.
Since:
4.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the identifier of this repository.
    Gets the type of the repository, for example "default".
  • Method Details

    • getId

      @Nonnull String getId()
      Gets the identifier of this repository.
      Returns:
      the (case-sensitive) identifier, never null
    • getType

      @Nonnull String getType()
      Gets the type of the repository, for example "default".
      Returns:
      the (case-sensitive) type of the repository, never null