ShrinkWrap Resolver Maven Implementation 2.0.0-alpha-2

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

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.impl.maven.MavenFormatStageImpl
All Implemented Interfaces:
org.jboss.shrinkwrap.resolver.api.FormatStage, MavenFormatStage

public class MavenFormatStageImpl
extends Object
implements MavenFormatStage

Implementation of MavenFormatStage

Author:
Karel Piwko

Constructor Summary
MavenFormatStageImpl(Collection<org.sonatype.aether.artifact.Artifact> artifacts)
           
 
Method Summary
 File[] as(Class<File> type)
           
 InputStream[] as(Class<InputStream> type)
           
 ResolvedArtifactInfo[] as(Class<ResolvedArtifactInfo> type)
           
<RETURNTYPE>
RETURNTYPE[]
as(Class<RETURNTYPE> type, org.jboss.shrinkwrap.resolver.api.formatprocessor.FormatProcessor<RETURNTYPE> processor)
           
 File asSingle(Class<File> type)
           
 InputStream asSingle(Class<InputStream> type)
           
 ResolvedArtifactInfo asSingle(Class<ResolvedArtifactInfo> type)
           
<RETURNTYPE>
RETURNTYPE
asSingle(Class<RETURNTYPE> type, org.jboss.shrinkwrap.resolver.api.formatprocessor.FormatProcessor<RETURNTYPE> processor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenFormatStageImpl

public MavenFormatStageImpl(Collection<org.sonatype.aether.artifact.Artifact> artifacts)
Method Detail

as

public final File[] as(Class<File> type)
                throws IllegalArgumentException
Specified by:
as in interface org.jboss.shrinkwrap.resolver.api.FormatStage
Throws:
IllegalArgumentException

as

public final InputStream[] as(Class<InputStream> type)
                       throws IllegalArgumentException
Specified by:
as in interface org.jboss.shrinkwrap.resolver.api.FormatStage
Throws:
IllegalArgumentException

asSingle

public final File asSingle(Class<File> type)
                    throws IllegalArgumentException,
                           org.jboss.shrinkwrap.resolver.api.NonUniqueResultException,
                           org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Specified by:
asSingle in interface org.jboss.shrinkwrap.resolver.api.FormatStage
Throws:
IllegalArgumentException
org.jboss.shrinkwrap.resolver.api.NonUniqueResultException
org.jboss.shrinkwrap.resolver.api.NoResolvedResultException

asSingle

public final InputStream asSingle(Class<InputStream> type)
                           throws IllegalArgumentException,
                                  org.jboss.shrinkwrap.resolver.api.NonUniqueResultException,
                                  org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Specified by:
asSingle in interface org.jboss.shrinkwrap.resolver.api.FormatStage
Throws:
IllegalArgumentException
org.jboss.shrinkwrap.resolver.api.NonUniqueResultException
org.jboss.shrinkwrap.resolver.api.NoResolvedResultException

as

public final <RETURNTYPE> RETURNTYPE[] as(Class<RETURNTYPE> type,
                                          org.jboss.shrinkwrap.resolver.api.formatprocessor.FormatProcessor<RETURNTYPE> processor)
                      throws IllegalArgumentException
Specified by:
as in interface org.jboss.shrinkwrap.resolver.api.FormatStage
Throws:
IllegalArgumentException

asSingle

public final <RETURNTYPE> RETURNTYPE asSingle(Class<RETURNTYPE> type,
                                              org.jboss.shrinkwrap.resolver.api.formatprocessor.FormatProcessor<RETURNTYPE> processor)
                          throws IllegalArgumentException,
                                 org.jboss.shrinkwrap.resolver.api.NonUniqueResultException,
                                 org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Specified by:
asSingle in interface org.jboss.shrinkwrap.resolver.api.FormatStage
Throws:
IllegalArgumentException
org.jboss.shrinkwrap.resolver.api.NonUniqueResultException
org.jboss.shrinkwrap.resolver.api.NoResolvedResultException

as

public final ResolvedArtifactInfo[] as(Class<ResolvedArtifactInfo> type)
                                throws IllegalArgumentException
Specified by:
as in interface MavenFormatStage
Throws:
IllegalArgumentException

asSingle

public final ResolvedArtifactInfo asSingle(Class<ResolvedArtifactInfo> type)
                                    throws IllegalArgumentException,
                                           org.jboss.shrinkwrap.resolver.api.NonUniqueResultException,
                                           org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Specified by:
asSingle in interface MavenFormatStage
Throws:
IllegalArgumentException
org.jboss.shrinkwrap.resolver.api.NonUniqueResultException
org.jboss.shrinkwrap.resolver.api.NoResolvedResultException

ShrinkWrap Resolver Maven Implementation 2.0.0-alpha-2

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