ShrinkWrap Resolver API 2.0.0-cr-1

org.jboss.shrinkwrap.resolver.api
Interface ResolvedArtifact<RESOLVEDTYPE extends ResolvedArtifact<RESOLVEDTYPE>>

Type Parameters:
RESOLVEDTYPE -

public interface ResolvedArtifact<RESOLVEDTYPE extends ResolvedArtifact<RESOLVEDTYPE>>

Representation of resolved artifact

Author:
Karel Piwko

Method Summary
<RETURNTYPE>
RETURNTYPE
as(Class<RETURNTYPE> returnTypeClass)
          Returns resolved artifact formated to returnTypeClass.
 File asFile()
          Returns resolved artifact as a File
 InputStream asInputStream()
          Returns resolved artifact as an @{link InputStream.
 RESOLVEDTYPE asResolvedArtifact()
          Returns resolved artifact, optionally casted to the sub type of ResolvedArtifact
 

Method Detail

asResolvedArtifact

RESOLVEDTYPE asResolvedArtifact()
Returns resolved artifact, optionally casted to the sub type of ResolvedArtifact

Returns:

asFile

File asFile()
Returns resolved artifact as a File

Returns:

asInputStream

InputStream asInputStream()
Returns resolved artifact as an @{link InputStream. It is a responsibility of the caller to close stream afterwards.

Returns:

as

<RETURNTYPE> RETURNTYPE as(Class<RETURNTYPE> returnTypeClass)
              throws IllegalArgumentException,
                     UnsupportedOperationException
Returns resolved artifact formated to returnTypeClass. See FormatProcessor to register additional format.

Parameters:
returnTypeClass -
Returns:
Throws:
{@link - IllegalArgumentException} If the type is not specified
{@link - UnsupportedOperationException} If the type is not supported
IllegalArgumentException
UnsupportedOperationException

ShrinkWrap Resolver API 2.0.0-cr-1

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