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 java.lang.Object implements org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultRepositoryKeyFunctionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.aether.repository.RepositoryKeyFunctionrepositoryKeyFunction(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.RepositoryKeyFunctionsystemRepositoryKeyFunction(org.eclipse.aether.RepositorySystemSession session)Returns system-wide repository key function.
-
-
-
Constructor Detail
-
DefaultRepositoryKeyFunctionFactory
public DefaultRepositoryKeyFunctionFactory()
-
-
Method Detail
-
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(Class, RepositorySystemSession, String, String)
-
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 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
-
-