类 DirectiveComponent
java.lang.Object
com.publiccms.logic.component.site.DirectiveComponent
DirectiveComponent 指令处理组件
-
字段概要
字段修饰符和类型字段说明static final String
private String
private String
protected final org.apache.commons.logging.Log
private Map<String,
BaseMethod> private String
private Map<String,
Map<String, BaseTemplateDirective>> private SiteComponent
private Map<String,
AbstractTaskDirective> private TemplateComponent
private Map<String,
AbstractTemplateDirective> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
copyConfig
(freemarker.template.Configuration source, freemarker.template.Configuration target) getDirectiveName
(String className) private String
getDirectiveNamespace
(Class<? extends BaseTemplateDirective> clazz) private String
getDirectiveShortName
(String namespace, String className) private void
init
(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, List<AbstractTemplateDirective> templateDirectiveList, List<AbstractTaskDirective> taskDirectiveList, List<BaseMethod> methodList) private void
initTemplateComponent
(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, String directivePrefix) void
setDirectivePrefix
(String directivePrefix) void
setDirectiveRemoveRegex
(String directiveRemoveRegex) void
setMethodRemoveRegex
(String methodRemoveRegex)
-
字段详细资料
-
DEFAULT_NAMESPACE
- 另请参阅:
-
directiveRemoveRegex
-
methodRemoveRegex
-
directivePrefix
-
log
protected final org.apache.commons.logging.Log log -
namespaceMap
-
templateDirectiveMap
-
taskDirectiveMap
-
methodMap
-
templateComponent
-
siteComponent
-
-
构造器详细资料
-
DirectiveComponent
public DirectiveComponent()
-
-
方法详细资料
-
getDirectiveName
-
getDirectiveNamespace
-
getDirectiveShortName
-
init
@Autowired private void init(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, List<AbstractTemplateDirective> templateDirectiveList, List<AbstractTaskDirective> taskDirectiveList, List<BaseMethod> methodList) throws freemarker.template.TemplateModelException, IOException - 抛出:
freemarker.template.TemplateModelException
IOException
-
initTemplateComponent
private void initTemplateComponent(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, String directivePrefix) throws IOException, freemarker.template.TemplateModelException - 抛出:
IOException
freemarker.template.TemplateModelException
-
copyConfig
private static void copyConfig(freemarker.template.Configuration source, freemarker.template.Configuration target) -
setDirectiveRemoveRegex
- 参数:
directiveRemoveRegex
-
-
setMethodRemoveRegex
- 参数:
methodRemoveRegex
-
-
setDirectivePrefix
-
getNamespaceMap
- 返回:
- the namespaceMap
-
getTemplateDirectiveMap
- 返回:
- template directive map
-
getTaskDirectiveMap
- 返回:
- task directive map
-
getMethodMap
- 返回:
- method map
-