public class EventObjectTypeResolverBuilder
extends java.lang.Object
TypeResolver capable of resolving type variables by using a combination of two type hierarchies.
The special resolver is only necessary for situations where the type of the event object contains an unresolved type variable
which cannot be resolved using the selected event type because the selected event type is a subtype of the event object.
For example:
private EventArrayList (raw type due to type erasure) The selected type is List| Constructor and Description |
|---|
EventObjectTypeResolverBuilder(java.util.Map<java.lang.reflect.TypeVariable<?>,java.lang.reflect.Type> selectedTypeVariables,
java.util.Map<java.lang.reflect.TypeVariable<?>,java.lang.reflect.Type> eventTypeVariables) |
| Modifier and Type | Method and Description |
|---|---|
TypeResolver |
build() |
java.util.Map<java.lang.reflect.TypeVariable<?>,java.lang.reflect.Type> |
getResolvedTypes() |
protected void |
resolveTypeVariables() |
protected void |
resolveTypeVariables(java.lang.reflect.ParameterizedType type1,
java.lang.reflect.Type type2) |
protected void |
resolveTypeVariables(java.lang.reflect.Type type1,
java.lang.reflect.Type type2) |
protected void |
resolveTypeVariables(java.lang.reflect.TypeVariable<?> type1,
java.lang.reflect.Type type2) |
public EventObjectTypeResolverBuilder(java.util.Map<java.lang.reflect.TypeVariable<?>,java.lang.reflect.Type> selectedTypeVariables,
java.util.Map<java.lang.reflect.TypeVariable<?>,java.lang.reflect.Type> eventTypeVariables)
public TypeResolver build()
protected void resolveTypeVariables()
protected void resolveTypeVariables(java.lang.reflect.Type type1,
java.lang.reflect.Type type2)
protected void resolveTypeVariables(java.lang.reflect.TypeVariable<?> type1,
java.lang.reflect.Type type2)
protected void resolveTypeVariables(java.lang.reflect.ParameterizedType type1,
java.lang.reflect.Type type2)
public java.util.Map<java.lang.reflect.TypeVariable<?>,java.lang.reflect.Type> getResolvedTypes()
Copyright © 2014. All Rights Reserved.