类 DirectiveComponent

java.lang.Object
com.publiccms.logic.component.site.DirectiveComponent

public class DirectiveComponent extends Object
DirectiveComponent 指令处理组件
  • 字段详细资料

  • 构造器详细资料

    • DirectiveComponent

      public DirectiveComponent()
  • 方法详细资料

    • getDirectiveName

      public String getDirectiveName(String className)
    • getDirectiveNamespace

      private String getDirectiveNamespace(Class<? extends BaseTemplateDirective> clazz)
    • getDirectiveShortName

      private String getDirectiveShortName(String namespace, String className)
    • 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

      public void setDirectiveRemoveRegex(String directiveRemoveRegex)
      参数:
      directiveRemoveRegex -
    • setMethodRemoveRegex

      public void setMethodRemoveRegex(String methodRemoveRegex)
      参数:
      methodRemoveRegex -
    • setDirectivePrefix

      public void setDirectivePrefix(String directivePrefix)
    • getNamespaceMap

      public Map<String,Map<String,BaseTemplateDirective>> getNamespaceMap()
      返回:
      the namespaceMap
    • getTemplateDirectiveMap

      public Map<String,AbstractTemplateDirective> getTemplateDirectiveMap()
      返回:
      template directive map
    • getTaskDirectiveMap

      public Map<String,AbstractTaskDirective> getTaskDirectiveMap()
      返回:
      task directive map
    • getMethodMap

      public Map<String,BaseMethod> getMethodMap()
      返回:
      method map