| java.lang.Object org.apache.jetspeed.locator.JetspeedTemplateLocator
JetspeedTemplateLocator | public class JetspeedTemplateLocator implements TemplateLocator(Code) | | Jetspeed's default implementation of a template locator.
author: David Sean Taylor version: $Id: JetspeedTemplateLocator.java 587334 2007-10-23 00:30:49Z taylor $ |
Constructor Summary | |
public | JetspeedTemplateLocator(List roots, String appRoot) Minimal assembly with a list of resource directory roots. | public | JetspeedTemplateLocator(List roots, String defaultLocatorType, String appRoot) Construct with a root list and a default locator type.
Parameters: roots - A list of resource root directories where templates are located. Parameters: defaultLocatorType - Under root directories, subdirectories represent locator types.A locator type represents a classification of templates.Any value is allowed. | public | JetspeedTemplateLocator(List roots, List omClasses, String defaultLocatorType, String appRoot) Assemble with list resource directory roots and OM classes and a defaultLocatorType.
Parameters: roots - A list of resource root directories where templates are located. Parameters: omClasses - Template replacable object model implementations for Template and TemplateLocator.Required order, with second optional: [ Template , TemplateLocator implementations. |
JetspeedTemplateLocator | public JetspeedTemplateLocator(List roots, String appRoot) throws FileNotFoundException(Code) | | Minimal assembly with a list of resource directory roots.
Parameters: roots - A list of resource root directories where templates are located. Parameters: appRoot - Root from where this application runs |
JetspeedTemplateLocator | public JetspeedTemplateLocator(List roots, String defaultLocatorType, String appRoot) throws FileNotFoundException(Code) | | Construct with a root list and a default locator type.
Parameters: roots - A list of resource root directories where templates are located. Parameters: defaultLocatorType - Under root directories, subdirectories represent locator types.A locator type represents a classification of templates.Any value is allowed. Use locator types to group templates together. |
JetspeedTemplateLocator | public JetspeedTemplateLocator(List roots, List omClasses, String defaultLocatorType, String appRoot) throws FileNotFoundException(Code) | | Assemble with list resource directory roots and OM classes and a defaultLocatorType.
Parameters: roots - A list of resource root directories where templates are located. Parameters: omClasses - Template replacable object model implementations for Template and TemplateLocator.Required order, with second optional: [ Template , TemplateLocator implementations. Parameters: defaultLocatorType - Under root directories, subdirectories represent locator types.A locator type represents a classification of templates.Any value is allowed. Use locator types to group templates together. |
start | public void start()(Code) | | |
templateExists | public boolean templateExists(String templateKey, boolean useCache)(Code) | | Checks for the existence of a template resource given a key.
The key are absolute paths to the templates, and are cached
in a template cache for performance.
Parameters: key - The absolute path to the template resource. True when the template is found, otherwise false. |
templateExists | public boolean templateExists(String templateKey)(Code) | | |
|
|