All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unix4j.codegen.loader.ClassBasedDataLoader Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
package org.unix4j.codegen.loader;

import freemarker.template.TemplateModel;

/**
 * Loads and returns a {@link TemplateModel} based on a Java {@link Class}, for
 * instance by analysing the class through reflection and/or reading annotations
 * present with the class or its elements.
 */
public interface ClassBasedDataLoader {
	/**
	 * Loads and returns a {@link TemplateModel} based on the specified
	 * {@code clazz}. Most implementations analyze the class through reflection
	 * which is possibly enriched with annotations supporting the code
	 * generation.
	 * 
	 * @param clazz
	 *            the class to analyze
	 * @return the template model constructed on the basis of the specified
	 *         {@code clazz}
	 */
	TemplateModel load(Class clazz);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy