ShrinkWrap Resolver API 2.0.0-alpha-1

org.jboss.shrinkwrap.resolver.api
Interface DependencyBuilder<T extends DependencyBuilder<T>>


public interface DependencyBuilder<T extends DependencyBuilder<T>>

Encapsulates access to a backing store or repository; Accepts coordinates intended to resolve to a set of dependencies.

Author:
Karel Piwko, Andrew Lee Rubinger

Method Summary
 T artifact(String coordinates)
          Creates an artifact builder.
 T artifacts(String... coordinates)
          Creates an artifact builder.
 

Method Detail

artifact

T artifact(String coordinates)
                                        throws ResolutionException
Creates an artifact builder. You can define additional parameters for the artifact later. Additional parameters will be changed for all artifacts defined by this call.

Parameters:
coordinates - Coordinates specified to a created artifact, specified in an implementation-specific format.
Returns:
This DependencyBuilder
Throws:
ResolutionException - If artifact coordinates are wrong or if version cannot be determined.

artifacts

T artifacts(String... coordinates)
                                         throws ResolutionException
Creates an artifact builder. You can define additional parameters for the artifacts later. Additional parameters will be changed for all artifacts defined by this call.

Parameters:
coordinates - A list of coordinates specified to the created artifacts, specified in an implementation-specific format.
Returns:
This DependencyBuilder
Throws:
ResolutionException - If artifact coordinates are wrong or if version cannot be determined.

ShrinkWrap Resolver API 2.0.0-alpha-1

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