|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.acciente.induction.init.config.Config.Templating.TemplatePath
public static class Config.Templating.TemplatePath
Modular configuration container
Nested Class Summary | |
---|---|
static class |
Config.Templating.TemplatePath.Dir
Modular configuration container |
static class |
Config.Templating.TemplatePath.LoaderClass
Modular configuration container |
static class |
Config.Templating.TemplatePath.WebappPath
Modular configuration container |
Constructor Summary | |
---|---|
Config.Templating.TemplatePath()
|
Method Summary | |
---|---|
void |
addDir(File oDir)
Adds a directory to the list of locations in which a template will be searched |
void |
addLoaderClass(String sLoaderClassName,
String sPath)
Adds a class to the list of locations in which a template will be searched, this setting will only be used by a templating engine that supports it (e.g: Freemarker) in these cases the templating engine will call the getResource() method on the specified class to retrieve a template |
void |
addWebappPath(String sRelativePath)
Adds a web application path to the list of locations in which a template will be searched, this setting will only be used by a templating engine that supports it (e.g: Freemarker) in these cases the templating engine will call the Servlet context's getResource() method to passing the name to getResource() |
List |
getList()
Returns the list of items added to this path |
String |
toString()
|
String |
toXML()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Config.Templating.TemplatePath()
Method Detail |
---|
public void addDir(File oDir)
oDir
- a File object representing a directorypublic void addLoaderClass(String sLoaderClassName, String sPath)
sLoaderClassName
- a prefix to append to the template name before attemptingsPath
- a path to where the templates are located, if the path starts with a /
then the path is absolute, otherwise it is assumed to be relative to the package name
of the loader classpublic void addWebappPath(String sRelativePath)
sRelativePath
- a path of the web application root (the parent of the WEB-INF folder)public List getList()
public String toString()
toString
in class Object
public String toXML()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |