Package org.eclipse.aether.internal.impl
Class DefaultRepositoryKeyFunctionFactory
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryKeyFunctionFactory
- All Implemented Interfaces:
RepositoryKeyFunctionFactory
@Singleton
@Named
public class DefaultRepositoryKeyFunctionFactory
extends Object
implements RepositoryKeyFunctionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrepositoryKeyFunction(Class<?> owner, RepositorySystemSession session, String defaultValue, String configurationKey) Method that based on configuration returns the "repository key function".Returns system-wide tracking repository key function.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory
systemRepositoryKeyFunction
-
Constructor Details
-
DefaultRepositoryKeyFunctionFactory
public DefaultRepositoryKeyFunctionFactory()
-
-
Method Details
-
trackingRepositoryKeyFunction
Description copied from interface:RepositoryKeyFunctionFactoryReturns system-wide tracking repository key function.- Specified by:
trackingRepositoryKeyFunctionin interfaceRepositoryKeyFunctionFactory- Parameters:
session- The repository session, must not benull.- Returns:
- The repository key function.
- See Also:
-
repositoryKeyFunction
public RepositoryKeyFunction repositoryKeyFunction(Class<?> owner, RepositorySystemSession session, String defaultValue, String configurationKey) Description copied from interface:RepositoryKeyFunctionFactoryMethod 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 returnsnull. Only theconfigurationKeyparameter may benullin which case no configuration lookup happens but thedefaultValueis directly used instead.- Specified by:
repositoryKeyFunctionin interfaceRepositoryKeyFunctionFactory- Parameters:
owner- The "owner" of key function (used to create cache-key), must not benull.session- The repository session, must not benull.defaultValue- The default value of repository key configuration, must not benull.configurationKey- The configuration key to lookup configuration from, may benull, in which case no configuration lookup happens but thedefaultValueis used to create the repository key function.- Returns:
- The repository key function.
-