Package org.renjin.aether

Source Code of org.renjin.aether.ManualWagonProvider

/*******************************************************************************
* Copyright (c) 2010, 2011 Sonatype, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*    Sonatype, Inc. - initial API and implementation
*******************************************************************************/
package org.renjin.aether;

import org.apache.maven.wagon.Wagon;
import org.eclipse.aether.connector.wagon.WagonProvider;
import org.sonatype.maven.wagon.AhcWagon;

/**
* A simplistic provider for wagon instances when no Plexus-compatible IoC container is used.
*/
public class ManualWagonProvider implements WagonProvider {

  public Wagon lookup(String roleHint) throws Exception {
    if ("http".equals(roleHint)) {
      return new AhcWagon();
    }
    return null;
  }

  public void release(Wagon wagon) {
  }

}
TOP

Related Classes of org.renjin.aether.ManualWagonProvider

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.