类 DirectiveComponent
java.lang.Object
com.publiccms.logic.component.site.DirectiveComponent
DirectiveComponent 指令处理组件
-
字段概要
字段修饰符和类型字段说明static final Stringprivate Stringprivate Stringprotected final org.apache.commons.logging.Logprivate Map<String,BaseMethod> private Stringprivate Map<String,Map<String, BaseTemplateDirective>> private SiteComponentprivate Map<String,AbstractTaskDirective> private TemplateComponentprivate Map<String,AbstractTemplateDirective> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static voidcopyConfig(freemarker.template.Configuration source, freemarker.template.Configuration target) getDirectiveName(String className) private StringgetDirectiveNamespace(Class<? extends BaseTemplateDirective> clazz) private StringgetDirectiveShortName(String namespace, String className) private voidinit(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, List<AbstractTemplateDirective> templateDirectiveList, List<AbstractTaskDirective> taskDirectiveList, List<BaseMethod> methodList) private voidinitTemplateComponent(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, String directivePrefix) voidsetDirectivePrefix(String directivePrefix) voidsetDirectiveRemoveRegex(String directiveRemoveRegex) voidsetMethodRemoveRegex(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.TemplateModelExceptionIOException
-
initTemplateComponent
private void initTemplateComponent(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer, String directivePrefix) throws IOException, freemarker.template.TemplateModelException - 抛出:
IOExceptionfreemarker.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
-