All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.bootstrap.resolver.maven.SimpleDependencyGraphTransformationContext Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.bootstrap.resolver.maven;

import java.util.HashMap;
import java.util.Map;

import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.collection.DependencyGraphTransformationContext;

/**
 *
 * @author Alexey Loubyansky
 */
public class SimpleDependencyGraphTransformationContext implements DependencyGraphTransformationContext {

    private final RepositorySystemSession session;
    private final Map map = new HashMap<>(3);

    public SimpleDependencyGraphTransformationContext(RepositorySystemSession session) {
        this.session = session;
    }

    @Override
    public RepositorySystemSession getSession() {
        return session;
    }

    @Override
    public Object get(Object key) {
        return map.get(key);
    }

    @Override
    public Object put(Object key, Object value) {
        return map.put(key, value);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy