|
ShrinkWrap Resolver API 2.0.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormatStage
Represents the formatting stage of resolution in which the resolved artifact is returned in the desired format.
Supports extensible formats by optionally supplying a FormatProcessor
| Method Summary | ||
|---|---|---|
File[] |
as(Class<File> type)
Formats the resultant artifacts as an array of Files. |
|
InputStream[] |
as(Class<InputStream> type)
Formats the resultant artifact as an InputStream. |
|
|
as(Class<RETURNTYPE> type,
FormatProcessor<RETURNTYPE> processor)
Formats the resultant artifact as the specified type using the specified FormatProcessor. |
|
File |
asSingle(Class<File> type)
Formats the resultant artifact as a File; assumes a single artifact is returned from resolution. |
|
InputStream |
asSingle(Class<InputStream> type)
Formats the resultant artifact as an InputStream; assumes a single artifact is returned from resolution. |
|
|
asSingle(Class<RETURNTYPE> type,
FormatProcessor<RETURNTYPE> processor)
Formats the resultant artifact as the specified type using the specified FormatProcessor; assumes a
single artifact is returned from resolution. |
|
| Method Detail |
|---|
File[] as(Class<File> type)
throws IllegalArgumentException
Files. If nothing matches resolution, an empty array will
be returned.
type -
IllegalArgumentException - If the type is not specified
File asSingle(Class<File> type)
throws IllegalArgumentException,
NonUniqueResultException,
NoResolvedResultException
File; assumes a single artifact is returned from resolution.
type -
IllegalArgumentException - If the type is not specified
NonUniqueResultException - If the resolution resulted in more than one result
NoResolvedResultException - If the resolution did not yield any result
InputStream[] as(Class<InputStream> type)
throws IllegalArgumentException
InputStream. If nothing matches resolution, an empty array will be
returned.
type -
IllegalArgumentException - If the type is not specified
InputStream asSingle(Class<InputStream> type)
throws IllegalArgumentException,
NonUniqueResultException,
NoResolvedResultException
InputStream; assumes a single artifact is returned from resolution.
type -
IllegalArgumentException - If the type is not specified
NonUniqueResultException - If the resolution resulted in more than one result
NoResolvedResultException - If the resolution did not yield any result
<RETURNTYPE> RETURNTYPE[] as(Class<RETURNTYPE> type,
FormatProcessor<RETURNTYPE> processor)
throws IllegalArgumentException
FormatProcessor. If nothing
matches resolution, an empty array will be returned.
type - processor -
IllegalArgumentException - If either argument is not specified
<RETURNTYPE> RETURNTYPE asSingle(Class<RETURNTYPE> type,
FormatProcessor<RETURNTYPE> processor)
throws IllegalArgumentException,
NonUniqueResultException,
NoResolvedResultException
FormatProcessor; assumes a
single artifact is returned from resolution.
type - processor -
IllegalArgumentException - If either argument is not specified
NonUniqueResultException - If the resolution resulted in more than one result
NoResolvedResultException - If the resolution did not yield any result
|
ShrinkWrap Resolver API 2.0.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||