public final class GenericsUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkCompatiblePollableBinder(Binder binderInstance,
Class<?> bindingTargetType)
Return the generic type of PollableSource to determine if it is appropriate
for the binder.
|
static Class<?> |
getParameterType(Class<?> evaluatedClass,
Class<?> interfaceClass,
int position)
For a specific class that implements or extends a parameterized type, return the
parameter of that interface at a given position.
|
public static Class<?> getParameterType(Class<?> evaluatedClass, Class<?> interfaceClass, int position)
class MessageChannelBinder implements Binder<MessageChannel, ?, ?>getParameterType(MessageChannelBinder.class, Binder.class, 0);will returnBinder
evaluatedClass - the evaluated classinterfaceClass - the parametrized interfaceposition - the positionIllegalStateException - if the evaluated class does not implement the
interface orpublic static boolean checkCompatiblePollableBinder(Binder binderInstance, Class<?> bindingTargetType)
binderInstance - the binder.bindingTargetType - the binding target type.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.