Interface RepositoryLayoutProvider

  • All Known Implementing Classes:
    DefaultRepositoryLayoutProvider

    public interface RepositoryLayoutProvider
    Retrieves a repository layout from the installed layout factories.
    • Method Detail

      • newRepositoryLayout

        RepositoryLayout newRepositoryLayout​(RepositorySystemSession session,
                                             RemoteRepository repository)
                                      throws NoRepositoryLayoutException
        Tries to retrieve a repository layout for the specified remote repository.
        Parameters:
        session - The repository system session from which to configure the layout, must not be null.
        repository - The remote repository to create a layout for, must not be null.
        Returns:
        The layout for the given repository, never null.
        Throws:
        NoRepositoryLayoutException - If none of the installed layout factories can provide a repository layout for the specified remote repository.