Interface RepositoryKeyFunctionFactory
public interface RepositoryKeyFunctionFactory
A factory to create
RepositoryKeyFunction instances.- Since:
- 2.0.14
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.repository.RepositoryKeyFunctionrepositoryKeyFunction(Class<?> owner, org.eclipse.aether.RepositorySystemSession session, String defaultValue, String configurationKey) Method that based on configuration returns the "repository key function".org.eclipse.aether.repository.RepositoryKeyFunctionsystemRepositoryKeyFunction(org.eclipse.aether.RepositorySystemSession session) Returns system-wide repository key function.
-
Method Details
-
systemRepositoryKeyFunction
org.eclipse.aether.repository.RepositoryKeyFunction systemRepositoryKeyFunction(org.eclipse.aether.RepositorySystemSession session) Returns system-wide repository key function.- Parameters:
session- The repository session, must not benull.- Returns:
- The repository key function.
- See Also:
-
repositoryKeyFunction
org.eclipse.aether.repository.RepositoryKeyFunction repositoryKeyFunction(Class<?> owner, org.eclipse.aether.RepositorySystemSession session, String defaultValue, 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 returnsnull. Only theconfigurationKeyparameter may benullin which case no configuration lookup happens but thedefaultValueis directly used instead.- 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.
-