Interface RepositoryKeyFunctionFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.aether.repository.RepositoryKeyFunction repositoryKeyFunction​(java.lang.Class<?> owner, org.eclipse.aether.RepositorySystemSession session, java.lang.String defaultValue, java.lang.String configurationKey)
      Method that based on configuration returns the "repository key function".
      org.eclipse.aether.repository.RepositoryKeyFunction systemRepositoryKeyFunction​(org.eclipse.aether.RepositorySystemSession session)
      Returns system-wide repository key function.
    • Method Detail

      • repositoryKeyFunction

        org.eclipse.aether.repository.RepositoryKeyFunction repositoryKeyFunction​(java.lang.Class<?> owner,
                                                                                  org.eclipse.aether.RepositorySystemSession session,
                                                                                  java.lang.String defaultValue,
                                                                                  java.lang.String configurationKey)
        Method that based on configuration returns the "repository key function". The returned function will be session cached if session is equipped with cache, otherwise it will be non cached. Method never returns null. Only the configurationKey parameter may be null in which case no configuration lookup happens but the defaultValue is directly used instead.
        Parameters:
        owner - The "owner" of key function (used to create cache-key), must not be null.
        session - The repository session, must not be null.
        defaultValue - The default value of repository key configuration, must not be null.
        configurationKey - The configuration key to lookup configuration from, may be null, in which case no configuration lookup happens but the defaultValue is used to create the repository key function.
        Returns:
        The repository key function.