ShrinkWrap Resolver API 2.0.0-alpha-1

org.jboss.shrinkwrap.resolver.api
Class DependencyResolvers

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.api.DependencyResolvers

public class DependencyResolvers
extends Object

Client entry point to resolve Archives from a specified DependencyBuilder

Author:
Karel Piwko, Andrew Lee Rubinger

Constructor Summary
DependencyResolvers()
           
 
Method Summary
static
<T extends ResolverEntryPoint<T>>
T
use(Class<T> clazz)
          Creates a new implementation of a dependency builder based on passed class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyResolvers

public DependencyResolvers()
Method Detail

use

public static <T extends ResolverEntryPoint<T>> T use(Class<T> clazz)
Creates a new implementation of a dependency builder based on passed class. This allows to switch builder in the test suite dynamically

Type Parameters:
T - The type of class which extends DependencyBuilder
Parameters:
clazz - the class
Returns:
The new instance of dependency builder backed by passed implementation
Throws:
IllegalArgumentException - If clazz is not supplied

ShrinkWrap Resolver API 2.0.0-alpha-1

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