org.netbeans.modules.web.spi.webmodule
Interface WebPrivilegedTemplates
public interface WebPrivilegedTemplates
List of templates which should be in the initial "privileged" list
when creating a new file. An instance should be placed in the
j2ee/webtier/templates
folder in a module layer.
getPrivilegedTemplates
String[] getPrivilegedTemplates(WebModule webModule)
- Returns the list of templates which should be added in the initial "privileged" list
when created a new file.
- Parameters:
webModule
- the web module to return the templates for.
For example, it can be used to find out whether the web module is extended
by a framework and then appropriate templates for the framework can be offered
in the list of privileged list of templates.
- Returns:
- full paths to privileged templates, e.g. Templates/Other/XmlFile.xml; never null.