/** * Finds the type parameter for the given class. * * @param klass * a parameterized class * @return the class's type parameter */ static Class<?> getTypeParameter(Class<?> klass) { return getTypeParameter(klass, Object.class); }
/** * Returns the {@link Class} of the configuration class type parameter. * * @return the configuration class * @see Generics#getTypeParameter(Class, Class) */ public final Class<T> getConfigurationClass() { return Generics.getTypeParameter(getClass(), Configuration.class); }