站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

TemplateLoader - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.format.template
Class TemplateLoader

java.lang.Object
  extended byorg.jboss.portal.format.template.TemplateRepository
      extended byorg.jboss.portal.format.template.TemplateLoader

public class TemplateLoader
extends TemplateRepository

Version:
$Revision: 5448 $
Author:
Julien Viet

Nested Class Summary
 
Nested classes inherited from class org.jboss.portal.format.template.TemplateRepository
TemplateRepository.TemplateClassLoader
 
Field Summary
private  Loader loader
           
 
Fields inherited from class org.jboss.portal.format.template.TemplateRepository
 
Constructor Summary
TemplateLoader(Loader loader)
           
 
Method Summary
 void addTemplate(java.lang.String name, java.lang.String loadName)
           
 void addTemplate(java.lang.String name, java.lang.String loadName, java.util.Set names)
           
static TemplateLoader create(java.lang.ClassLoader cl, java.lang.String base)
           
 Loader getLoader()
           
 org.dom4j.Document loadTemplate(java.lang.String name)
          Simply loads a template and returns it.
 void setLoader(Loader loader)
           
 
Methods inherited from class org.jboss.portal.format.template.TemplateRepository
addTemplate, addTemplate, addTemplate, addTemplate, clear, createTemplate, createTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loader

private Loader loader
Constructor Detail

TemplateLoader

public TemplateLoader(Loader loader)
Method Detail

getLoader

public Loader getLoader()

setLoader

public void setLoader(Loader loader)

addTemplate

public void addTemplate(java.lang.String name,
                        java.lang.String loadName)
                 throws BuildException
Throws:
BuildException

addTemplate

public void addTemplate(java.lang.String name,
                        java.lang.String loadName,
                        java.util.Set names)
                 throws BuildException
Throws:
BuildException

loadTemplate

public org.dom4j.Document loadTemplate(java.lang.String name)
                                throws BuildException
Simply loads a template and returns it.

Throws:
BuildException

create

public static TemplateLoader create(java.lang.ClassLoader cl,
                                    java.lang.String base)