Interface RepositoryLayoutFactory

  • All Known Implementing Classes:
    Maven2RepositoryLayoutFactory

    public interface RepositoryLayoutFactory
    A factory to obtain repository layouts. A repository layout is responsible to map an artifact or some metadata to a URI relative to the repository root where the resource resides. When the repository system needs to access a given remote repository, it iterates the registered factories in descending order of their priority and calls newInstance(RepositorySystemSession, RemoteRepository) on them. The first layout returned by a factory will then be used for transferring artifacts/metadata.
    • Method Detail

      • getPriority

        float getPriority()
        The priority of this factory. When multiple factories can handle a given repository, factories with higher priority are preferred over those with lower priority.
        Returns:
        The priority of this factory.