public class DirectiveComponent
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_NAMESPACE |
private java.lang.String |
directivePrefix |
private java.lang.String |
directiveRemoveRegex |
protected org.apache.commons.logging.Log |
log |
private java.util.Map<java.lang.String,BaseMethod> |
methodMap |
private java.lang.String |
methodRemoveRegex |
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,BaseTemplateDirective>> |
namespaceMap |
private SiteComponent |
siteComponent |
private java.util.Map<java.lang.String,AbstractTaskDirective> |
taskDirectiveMap |
private TemplateComponent |
templateComponent |
private java.util.Map<java.lang.String,AbstractTemplateDirective> |
templateDirectiveMap |
构造器和说明 |
---|
DirectiveComponent() |
限定符和类型 | 方法和说明 |
---|---|
private static void |
copyConfig(freemarker.template.Configuration source,
freemarker.template.Configuration target) |
java.lang.String |
getDirectiveName(java.lang.String className) |
private java.lang.String |
getDirectiveNamespace(java.lang.Class<? extends BaseTemplateDirective> clazz) |
private java.lang.String |
getDirectiveShortName(java.lang.String namespace,
java.lang.String className) |
java.util.Map<java.lang.String,BaseMethod> |
getMethodMap() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,BaseTemplateDirective>> |
getNamespaceMap() |
java.util.Map<java.lang.String,AbstractTaskDirective> |
getTaskDirectiveMap() |
java.util.Map<java.lang.String,AbstractTemplateDirective> |
getTemplateDirectiveMap() |
private void |
init(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer,
java.util.List<AbstractTemplateDirective> templateDirectiveList,
java.util.List<AbstractTaskDirective> taskDirectiveList,
java.util.List<BaseMethod> methodList) |
private void |
initTemplateComponent(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer,
java.lang.String directivePrefix) |
void |
setDirectivePrefix(java.lang.String directivePrefix) |
void |
setDirectiveRemoveRegex(java.lang.String directiveRemoveRegex) |
void |
setMethodRemoveRegex(java.lang.String methodRemoveRegex) |
public static final java.lang.String DEFAULT_NAMESPACE
private java.lang.String directiveRemoveRegex
private java.lang.String methodRemoveRegex
private java.lang.String directivePrefix
protected final org.apache.commons.logging.Log log
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,BaseTemplateDirective>> namespaceMap
private java.util.Map<java.lang.String,AbstractTemplateDirective> templateDirectiveMap
private java.util.Map<java.lang.String,AbstractTaskDirective> taskDirectiveMap
private java.util.Map<java.lang.String,BaseMethod> methodMap
private TemplateComponent templateComponent
private SiteComponent siteComponent
public java.lang.String getDirectiveName(java.lang.String className)
private java.lang.String getDirectiveNamespace(java.lang.Class<? extends BaseTemplateDirective> clazz)
private java.lang.String getDirectiveShortName(java.lang.String namespace, java.lang.String className)
@Autowired private void init(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, java.util.List<AbstractTemplateDirective> templateDirectiveList, java.util.List<AbstractTaskDirective> taskDirectiveList, java.util.List<BaseMethod> methodList) throws freemarker.template.TemplateModelException, java.io.IOException
freemarker.template.TemplateModelException
java.io.IOException
private void initTemplateComponent(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, java.lang.String directivePrefix) throws java.io.IOException, freemarker.template.TemplateModelException
java.io.IOException
freemarker.template.TemplateModelException
private static void copyConfig(freemarker.template.Configuration source, freemarker.template.Configuration target)
public void setDirectiveRemoveRegex(java.lang.String directiveRemoveRegex)
directiveRemoveRegex
- public void setMethodRemoveRegex(java.lang.String methodRemoveRegex)
methodRemoveRegex
- public void setDirectivePrefix(java.lang.String directivePrefix)
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,BaseTemplateDirective>> getNamespaceMap()
public java.util.Map<java.lang.String,AbstractTemplateDirective> getTemplateDirectiveMap()
public java.util.Map<java.lang.String,AbstractTaskDirective> getTaskDirectiveMap()
public java.util.Map<java.lang.String,BaseMethod> getMethodMap()