Class TypeResolver
java.lang.Object
org.jboss.arquillian.graphene.spi.TypeResolver
Instantiates given class while it reflects annotation
ImplementedBy in order to determine final implementation of
given type.- Author:
- Lukas Fryc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tinstantiate(Class<T> type) Instantiates class by given type, while it reflects annotationImplementedByin order to determine final implementation of given type.static <T> Tinstantiate(String className) Instantiates a class by given implementation namestatic <T> Class<? extends T>resolveType(Class<T> type) Resolves implementation type based on given type, while it reflects annotationImplementedByin order to determine final implementation of given type.static <T> Class<? extends T>resolveType(String typeName) Resolves type based on given className, while it reflects annotationImplementedByin order to determine final implementation of given type.
-
Constructor Details
-
TypeResolver
public TypeResolver()
-
-
Method Details
-
resolveType
Resolves type based on given className, while it reflects annotationImplementedByin order to determine final implementation of given type.- Parameters:
typeName- the name of the type- Returns:
- the implementation class for given type
-
resolveType
Resolves implementation type based on given type, while it reflects annotationImplementedByin order to determine final implementation of given type.- Parameters:
type- the type to be resolved- Returns:
- the implementation class for given type
-
instantiate
Instantiates a class by given implementation name- Parameters:
className-- Returns:
-
instantiate
Instantiates class by given type, while it reflects annotationImplementedByin order to determine final implementation of given type.- Parameters:
type- the type of the instantiated instance, which can be either final implementation type or type annotated byImplementedByin order to determine final implementation of given type.- Returns:
- instance of given type
-