Package org.thymeleaf.templatemode

Examples of org.thymeleaf.templatemode.ITemplateModeHandler


   
    log.debug("Caching element {}", cacheName);

    String templateMode = arguments.getTemplateResolution().getTemplateMode();

    final ITemplateModeHandler templateModeHandler = arguments.getConfiguration().getTemplateModeHandler(templateMode);
    final ITemplateWriter templateWriter = templateModeHandler.getTemplateWriter();

    if (templateWriter == null) {
      throw new ConfigurationException("No template writer defined for template mode \"" + templateMode + "\"");
    } else if (!AbstractGeneralTemplateWriter.class.isAssignableFrom(templateWriter.getClass())) {
      throw new ConfigurationException("The template writer defined for template mode \"" + templateMode
View Full Code Here


        if (logger.isDebugEnabled()) {
            logger.debug("[THYMELEAF][{}] Finished process on template \"{}\" using mode \"{}\"",
                    new Object[] { TemplateEngine.threadIndex(), templateName, templateMode });
        }
       
        final ITemplateModeHandler templateModeHandler =
                this.configuration.getTemplateModeHandler(templateMode);
        final ITemplateWriter templateWriter = templateModeHandler.getTemplateWriter();

        if (templateWriter == null) {
            throw new ConfigurationException(
                    "No template writer defined for template mode \"" + templateMode + "\"");
        }
View Full Code Here

   
    log.debug("Caching element {}", cacheName);

    String templateMode = arguments.getTemplateResolution().getTemplateMode();

    final ITemplateModeHandler templateModeHandler = arguments.getConfiguration().getTemplateModeHandler(templateMode);
    final ITemplateWriter templateWriter = templateModeHandler.getTemplateWriter();

    if (templateWriter == null) {
      throw new ConfigurationException("No template writer defined for template mode \"" + templateMode + "\"");
    } else if (!AbstractGeneralTemplateWriter.class.isAssignableFrom(templateWriter.getClass())) {
      throw new ConfigurationException("The template writer defined for template mode \"" + templateMode
View Full Code Here

    return new StandardCacheManager();
  }

  public Set<ITemplateModeHandler> templateModeHandlers() {
    HashSet<ITemplateModeHandler> set = new HashSet<ITemplateModeHandler>();
    ITemplateModeHandler handler = getHandler();
    set.add(handler);
    return set;
  }
View Full Code Here

    Set<IDialect> additionalDialects = new HashSet<IDialect>();
    return additionalDialects;
  }

  protected ITemplateModeHandler getHandler() {
    ITemplateModeHandler handler = ThymesheetStandardTemplateModeHandlers.LEGACYHTML5;
    for(ITemplateModeHandler stdHandler : ThymesheetStandardTemplateModeHandlers.ALL_TEMPLATE_MODE_HANDLERS) {
      if(stdHandler.getTemplateModeName().equals(templateMode)) {
        handler=stdHandler;
      }
    }
View Full Code Here

TOP

Related Classes of org.thymeleaf.templatemode.ITemplateModeHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.