org.jboss.shrinkwrap.resolver.api
Class DependencyResolvers
java.lang.Object
org.jboss.shrinkwrap.resolver.api.DependencyResolvers
public class DependencyResolvers
- extends Object
Client entry point to resolve Archive
s from a specified DependencyBuilder
- Author:
- Karel Piwko, Andrew Lee Rubinger
Method Summary |
static
|
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 |
DependencyResolvers
public DependencyResolvers()
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.