ShrinkWrap Resolver Maven Implementation 1.1.0-alpha-3

org.jboss.shrinkwrap.resolver.impl.maven
Class MavenImporterImpl

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.impl.maven.MavenImporterImpl
All Implemented Interfaces:
org.jboss.shrinkwrap.api.Assignable, MavenImporter

public class MavenImporterImpl
extends Object
implements MavenImporter

Basic implementation of MavenImporter. It is able to load settings.xml (optional) and a effective pom.

Author:
Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.shrinkwrap.resolver.api.maven.MavenImporter
MavenImporter.EffectivePomMavenImporter
 
Constructor Summary
MavenImporterImpl(org.jboss.shrinkwrap.api.Archive<?> archive)
          Constructs a MavenImporter based on underlying archive
 
Method Summary
<TYPE extends org.jboss.shrinkwrap.api.Assignable>
TYPE
as(Class<TYPE> archiveType)
           
 MavenImporter configureFrom(String path)
           
 MavenImporter.EffectivePomMavenImporter loadEffectivePom(String path, String... profiles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenImporterImpl

public MavenImporterImpl(org.jboss.shrinkwrap.api.Archive<?> archive)
Constructs a MavenImporter based on underlying archive

Parameters:
archive - the content to be enriched by importer
Method Detail

as

public <TYPE extends org.jboss.shrinkwrap.api.Assignable> TYPE as(Class<TYPE> archiveType)
Specified by:
as in interface org.jboss.shrinkwrap.api.Assignable

configureFrom

public MavenImporter configureFrom(String path)
Specified by:
configureFrom in interface MavenImporter

loadEffectivePom

public MavenImporter.EffectivePomMavenImporter loadEffectivePom(String path,
                                                                String... profiles)
Specified by:
loadEffectivePom in interface MavenImporter

ShrinkWrap Resolver Maven Implementation 1.1.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.