Class FragmentTemplateEngine

java.lang.Object
aQute.bnd.wstemplates.FragmentTemplateEngine

public class FragmentTemplateEngine extends Object
Manages a set of workspace template fragments. A template fragment is a zip file or a Github repo. A template index file (parameters format) can be used to provide the meta information. For example, a file on Github can hold the overview of available templates. This class is optimized to add multiple indexes and provide a unified overview of templates. It is expected that the users will select what templates to apply.

Once the set of templates is know, an FragmentTemplateEngine.TemplateUpdater is created. This takes a folder and analyzes the given templates. Since there can be multiple templates, there could be conflicts. The caller can remove FragmentTemplateEngine.Update objects if they conflict. Otherwise, multiple updates will be concatenated during FragmentTemplateEngine.TemplateUpdater.commit()