congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IEngineConfiguration.getTemplateManager
Code IndexAdd Tabnine to your IDE (free)

How to use
getTemplateManager
method
in
org.thymeleaf.IEngineConfiguration

Best Java code snippets using org.thymeleaf.IEngineConfiguration.getTemplateManager (Showing top 16 results out of 315)

origin: thymeleaf/thymeleaf

public IModel parse(final TemplateData ownerTemplate, final String template) {
  // We will be setting useCache to false because we don't want to pollute the cache with mere String
  // parsing done from here. Also, we are 'artificially' specifying it as nested even if we don't really
  // know if this fragment is exactly a nested text inside the template, but that's not really important...
  return this.configuration.getTemplateManager().parseString(ownerTemplate, template, 0, 0, this.templateMode, false);
}
origin: thymeleaf/thymeleaf

@Override
protected void writeUnresolved(final Writer writer) throws IOException {
  this.context.getConfiguration().getTemplateManager().process(this.templateModel, this.context, writer);
}
origin: thymeleaf/thymeleaf

@Override
protected String resolveText() {
  final Writer stringWriter = new FastStringWriter();
  this.context.getConfiguration().getTemplateManager().process(this.templateModel, this.context, stringWriter);
  return stringWriter.toString();
}
origin: thymeleaf/thymeleaf

/**
 * <p>
 *   Completely clears the Template Cache.
 * </p>
 * <p>
 *   If this method is called before the TemplateEngine has been initialized,
 *   it causes its initialization.
 * </p>
 */
public void clearTemplateCache() {
  if (!this.initialized) {
    initialize();
  }
  this.configuration.getTemplateManager().clearCaches();
}
origin: thymeleaf/thymeleaf

/**
 * <p>
 *   Clears the entry in the Template Cache for the specified
 *   template, if it is currently cached.
 * </p>
 * <p>
 *   If this method is called before the TemplateEngine has been initialized,
 *   it causes its initialization.
 * </p>
 * 
 * @param templateName the name of the template to be cleared from cache.
 */
public void clearTemplateCacheFor(final String templateName) {
  Validate.notNull(templateName, "Template name cannot be null");
  if (!this.initialized) {
    initialize();
  }
  this.configuration.getTemplateManager().clearCachesFor(templateName);
}

origin: thymeleaf/thymeleaf

final TemplateManager templateManager = this.configuration.getTemplateManager();
throttledTemplateProcessor = templateManager.parseAndProcessThrottled(templateSpec, context);
origin: thymeleaf/thymeleaf

final TemplateManager templateManager = this.configuration.getTemplateManager();
templateManager.parseAndProcess(templateSpec, context, writer);
origin: thymeleaf/thymeleaf

do {
  fragmentModel =
      configuration.getTemplateManager().parseStandalone(
          context, templateName, fragments,
origin: thymeleaf/thymeleaf

private CharSequence inlineSwitchTemplateMode(final ITemplateContext context, final IText text) {
  final TemplateManager templateManager = context.getConfiguration().getTemplateManager();
  final TemplateModel templateModel =
      templateManager.parseString(
          context.getTemplateData(), text.getText(),
          text.getLine(), text.getCol(),
          this.templateMode, true);
  if (!this.writeTextsToOutput) {
    final Writer stringWriter = new FastStringWriter(50);
    templateManager.process(templateModel, context, stringWriter);
    return stringWriter.toString();
  }
  // If we can directly write to output (and text is an IText), we will use a LazyProcessingCharSequence
  return new LazyProcessingCharSequence(context, templateModel);
}
origin: thymeleaf/thymeleaf

private CharSequence inlineSwitchTemplateMode(final ITemplateContext context, final ICDATASection cdataSection) {
  final TemplateManager templateManager = context.getConfiguration().getTemplateManager();
  /*
   * Notice we are ONLY processing the contents of the CDATA, because we know the target inlining
   * mode will not understand the CDATA (it will be textual) and we don't want it to mess around with
   * the CDATA's prefix and suffix.
   *
   * Note this will only be executed in markup modes (textual modes never fire "handleCDATASection" events),
   * so we are safe assuming the sizes of CDATA prefixes and suffixes in HTML/XML.
   */
  final TemplateModel templateModel =
      templateManager.parseString(
          context.getTemplateData(), cdataSection.getContent(),
          cdataSection.getLine(), cdataSection.getCol() + 9, // +9 because of the prefix
          this.templateMode, true);
  final Writer stringWriter = new FastStringWriter(50);
  templateManager.process(templateModel, context, stringWriter);
  return stringWriter.toString();
}
origin: thymeleaf/thymeleaf

private CharSequence inlineSwitchTemplateMode(final ITemplateContext context, final IComment comment) {
  final TemplateManager templateManager = context.getConfiguration().getTemplateManager();
  /*
   * Notice we are ONLY processing the contents of the Comment, because we know the target inlining
   * mode will not understand the Comment (it will be textual) and we don't want it to mess around with
   * the Comment's prefix and suffix.
   *
   * Note this will only be executed in markup modes (textual modes never fire "handleComment" events),
   * so we are safe assuming the sizes of Comment prefixes and suffixes in HTML/XML.
   */
  final TemplateModel templateModel =
      templateManager.parseString(
          context.getTemplateData(), comment.getContent(),
          comment.getLine(), comment.getCol() + 4, // +4 because of the prefix
          this.templateMode, true);
  final Writer stringWriter = new FastStringWriter(50);
  templateManager.process(templateModel, context, stringWriter);
  return stringWriter.toString();
}
origin: thymeleaf/thymeleaf

final TemplateManager templateManager = context.getConfiguration().getTemplateManager();
origin: thymeleaf/thymeleaf

configuration.getTemplateManager().parseString(
    context.getTemplateData(),
    unescapedTextStr,
origin: thymeleaf/thymeleaf

configuration.getTemplateManager().process(fragmentModel, context, stringWriter);
origin: thymeleaf/thymeleaf

final TemplateManager templateManager = context.getConfiguration().getTemplateManager();
origin: com.haulmont.cuba/cuba-portal

  @Override
  public void clearViewsCache() {
    ThymeleafViewResolver viewResolver = applicationContext.getBean(ThymeleafViewResolver.class);
    viewResolver.clearCache();
    viewResolver.getTemplateEngine().getConfiguration().getTemplateManager().clearCaches();
  }
}
org.thymeleafIEngineConfigurationgetTemplateManager

Popular methods of IEngineConfiguration

  • getCacheManager
  • getExecutionAttributes
  • getExpressionObjectFactory
  • getAttributeDefinitions
  • getCDATASectionProcessors
  • getCommentProcessors
  • getDecoupledTemplateLogicResolver
  • getDialectConfigurations
  • getDialects
  • getDocTypeProcessors
  • getElementDefinitions
  • getEngineContextFactory
  • getElementDefinitions,
  • getEngineContextFactory,
  • getLinkBuilders,
  • getMessageResolvers,
  • getModelFactory,
  • getPostProcessors,
  • getPreProcessors,
  • getProcessingInstructionProcessors,
  • getStandardDialectPrefix

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Option (scala)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now