public class ReflectionHelper extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static Class<?> |
getConcreteTypeOfGenericClassExtension(Class<?> classToExamine,
int parameterIndex) |
|
static Class<?> |
getConcreteTypeOfGenericInterfaceImplementation(Object instanceToExamine,
Class<?> implementedInterfaceClass,
int parameterIndex) |
Since Lambdas do erase type information, the method only works if the passed instance to examine is
NOT a lambda!!!
|
static Object |
instanceFromClassName(String className) |
public static Class<?> getConcreteTypeOfGenericInterfaceImplementation(Object instanceToExamine, Class<?> implementedInterfaceClass, int parameterIndex)
See: https://stackoverflow.com/questions/21887358/reflection-type-inference-on-java-8-lambdas
public static Class<?> getConcreteTypeOfGenericClassExtension(Class<?> classToExamine, int parameterIndex)
Copyright © 2019. All rights reserved.