Class DefaultRepositoryKeyFunctionFactory

  • All Implemented Interfaces:
    org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory

    @Singleton
    @Named
    public class DefaultRepositoryKeyFunctionFactory
    extends java.lang.Object
    implements org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • repositoryKeyFunction

        public 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.
        Specified by:
        repositoryKeyFunction in interface org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory
        Since:
        2.0.14