
public class TypeResolver extends Object
ImplementedBy in order to determine final implementation of
given type.| Constructor and Description |
|---|
TypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
instantiate(Class<T> type)
Instantiates class by given type, while it reflects annotation
ImplementedBy in order to determine final
implementation of given type. |
static <T> T |
instantiate(String className)
Instantiates a class by given implementation name
|
static <T> Class<? extends T> |
resolveType(Class<T> type)
Resolves implementation type based on given type, while it reflects annotation
ImplementedBy in 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 annotation
ImplementedBy in order to determine final
implementation of given type. |
public static <T> Class<? extends T> resolveType(String typeName)
ImplementedBy in order to determine final
implementation of given type.typeName - the name of the typepublic static <T> Class<? extends T> resolveType(Class<T> type)
ImplementedBy in order to
determine final implementation of given type.type - the type to be resolvedpublic static <T> T instantiate(String className)
className - public static <T> T instantiate(Class<T> type)
ImplementedBy in order to determine final
implementation of given type.type - the type of the instantiated instance, which can be either final implementation type or type annotated by
ImplementedBy in order to determine final implementation of given type.Copyright © 2015 JBoss by Red Hat. All rights reserved.