Class RepositoryIdObjectNameMapperFactory
java.lang.Object
org.eclipse.aether.transport.minio.internal.RepositoryIdObjectNameMapperFactory
- All Implemented Interfaces:
ObjectNameMapperFactory
@Singleton
@Named("repositoryId")
public class RepositoryIdObjectNameMapperFactory
extends Object
implements ObjectNameMapperFactory
A mapper that uses repository ID as bucket name and layout path as object name. Assumes repository ID is a valid
bucket name.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(RepositorySystemSession session, RemoteRepository repository, io.minio.MinioClient unused, Map<String, String> headers) Creates a factory for mapping artifact layout path ontoObjectName
.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
RepositoryIdObjectNameMapperFactory
public RepositoryIdObjectNameMapperFactory()
-
-
Method Details
-
create
public ObjectNameMapper create(RepositorySystemSession session, RemoteRepository repository, io.minio.MinioClient unused, Map<String, String> headers) Description copied from interface:ObjectNameMapperFactory
Creates a factory for mapping artifact layout path ontoObjectName
. Should never returnnull
.- Specified by:
create
in interfaceObjectNameMapperFactory
-