Package org.eclipse.aether.internal.impl
Class DefaultRepositoryKeyFunctionFactory
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryKeyFunctionFactory
- All Implemented Interfaces:
org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory
@Singleton
@Named
public class DefaultRepositoryKeyFunctionFactory
extends Object
implements org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultRepositoryKeyFunctionFactory
public DefaultRepositoryKeyFunctionFactory()
-
-
Method Details
-
systemRepositoryKeyFunction
public org.eclipse.aether.repository.RepositoryKeyFunction systemRepositoryKeyFunction(org.eclipse.aether.RepositorySystemSession session) Returns system-wide repository key function.- Specified by:
systemRepositoryKeyFunctionin interfaceorg.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory- Since:
- 2.0.14
- See Also:
-
repositoryKeyFunction
public 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.- Specified by:
repositoryKeyFunctionin interfaceorg.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory- Since:
- 2.0.14
-