/** * Get the information for a parameterized type * * @param type the parameterized type * @return the info */ protected T getParameterizedType(ParameterizedType type) { // First check if we already have it T result = peek(type); if (result != null) return result; // Instantiate result = instantiate(type); // Put the perlimanary result into the cache put(type, result); // Generate the details generate(type, result); return result; }
/** * Get the information for a class * * @param clazz the class * @return the info */ protected T getClass(Class<?> clazz) { // First check if we already have it T result = peek(clazz); if (result != null) return result; // Instantiate result = instantiate(clazz); // Put the preliminary result into the cache put(clazz, result); // Generate the details generate(clazz, result); return result; }