• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ITemplateModeHandler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.thymeleaf.templatemode.ITemplateModeHandler的典型用法代码示例。如果您正苦于以下问题:Java ITemplateModeHandler类的具体用法?Java ITemplateModeHandler怎么用?Java ITemplateModeHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ITemplateModeHandler类属于org.thymeleaf.templatemode包,在下文中一共展示了ITemplateModeHandler类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getHandler

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
protected ITemplateModeHandler getHandler() {
	ITemplateModeHandler handler = ThymesheetStandardTemplateModeHandlers.LEGACYHTML5;
	for(ITemplateModeHandler stdHandler : ThymesheetStandardTemplateModeHandlers.ALL_TEMPLATE_MODE_HANDLERS) {
		if(stdHandler.getTemplateModeName().equals(templateMode)) {
			handler=stdHandler;
		}
	}
	return handler;
}
 
开发者ID:connect-group,项目名称:thymeleaf-tdd,代码行数:10,代码来源:ThymesheetConfig.java


示例2: wrapHandler

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
protected static ITemplateModeHandler wrapHandler(ITemplateModeHandler handler) {
    return new BroadleafThymeleafTemplateModeHandler(handler);        
}
 
开发者ID:passion1014,项目名称:metaworks_framework,代码行数:4,代码来源:BroadleafThymeleafStandardTemplateModeHandlers.java


示例3: getStandardTemplateModeHandlers

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
public Set<ITemplateModeHandler> getStandardTemplateModeHandlers() {
    return ALL_BLC_TEMPLATE_MODE_HANDLERS;
}
 
开发者ID:passion1014,项目名称:metaworks_framework,代码行数:4,代码来源:BroadleafThymeleafStandardTemplateModeHandlers.java


示例4: BroadleafThymeleafTemplateModeHandler

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
public BroadleafThymeleafTemplateModeHandler(ITemplateModeHandler handler) {
    super();
    this.handler = handler;
}
 
开发者ID:passion1014,项目名称:metaworks_framework,代码行数:5,代码来源:BroadleafThymeleafTemplateModeHandler.java


示例5: wrapHandler

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
protected static ITemplateModeHandler wrapHandler(ITemplateModeHandler handler) {
    return new SparkThymeleafTemplateModeHandler(handler);        
}
 
开发者ID:akdasari,项目名称:SparkCommerce,代码行数:4,代码来源:SparkThymeleafStandardTemplateModeHandlers.java


示例6: getStandardTemplateModeHandlers

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
public Set<ITemplateModeHandler> getStandardTemplateModeHandlers() {
    return ALL_SC_TEMPLATE_MODE_HANDLERS;
}
 
开发者ID:akdasari,项目名称:SparkCommerce,代码行数:4,代码来源:SparkThymeleafStandardTemplateModeHandlers.java


示例7: SparkThymeleafTemplateModeHandler

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
public SparkThymeleafTemplateModeHandler(ITemplateModeHandler handler) {
    super();
    this.handler = handler;
}
 
开发者ID:akdasari,项目名称:SparkCommerce,代码行数:5,代码来源:SparkThymeleafTemplateModeHandler.java


示例8: templateModeHandlers

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
private Set<ITemplateModeHandler> templateModeHandlers() {
	if (templateModeHandlers == null) {
		templateModeHandlers = new HashSet<>();
	}
	return templateModeHandlers;
}
 
开发者ID:groupe-sii,项目名称:ogham,代码行数:7,代码来源:ThymeleafEngineConfigBuilder.java


示例9: defaultTemplateModeHandlers

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
private Set<ITemplateModeHandler> defaultTemplateModeHandlers() {
	if (defaultTemplateModeHandlers == null) {
		defaultTemplateModeHandlers = new HashSet<>();
	}
	return defaultTemplateModeHandlers;
}
 
开发者ID:groupe-sii,项目名称:ogham,代码行数:7,代码来源:ThymeleafEngineConfigBuilder.java


示例10: templateModeHandlers

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
public Set<ITemplateModeHandler> templateModeHandlers() {
	HashSet<ITemplateModeHandler> set = new HashSet<ITemplateModeHandler>();
	ITemplateModeHandler handler = getHandler();
	set.add(handler);
	return set;
}
 
开发者ID:connect-group,项目名称:thymeleaf-tdd,代码行数:7,代码来源:ThymesheetConfig.java


示例11: setTemplateModeHandlers

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
/**
 * <p>
 * Sets the Template Mode Handlers to be used by this template engine. Every
 * available template mode must have its corresponding handler.
 * </p>
 * <p>
 * By default, template mode handlers set are
 * {@link StandardTemplateModeHandlers#ALL_TEMPLATE_MODE_HANDLERS}
 * </p>
 * <p>
 * This operation can only be executed before processing templates for the
 * first time. Once a template is processed, the template engine is
 * considered to be <i>initialized</i>, and from then on any attempt to
 * change its configuration will result in an exception.
 * </p>
 * 
 * @param templateModeHandlers
 *            the Set of Template Mode Handlers.
 * @return this for fluent use
 */
public ThymeleafEngineConfigBuilder<P> setTemplateModeHandlers(final Set<? extends ITemplateModeHandler> templateModeHandlers) {
	this.templateModeHandlers().clear();
	this.templateModeHandlers().addAll(templateModeHandlers);
	return this;
}
 
开发者ID:groupe-sii,项目名称:ogham,代码行数:26,代码来源:ThymeleafEngineConfigBuilder.java


示例12: addTemplateModeHandler

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
/**
 * <p>
 * Adds a Template Mode Handler to the set of Template Mode Handlers to be
 * used by the template engine. Every available template mode must have its
 * corresponding handler.
 * </p>
 * <p>
 * By default, template mode handlers set are
 * {@link StandardTemplateModeHandlers#ALL_TEMPLATE_MODE_HANDLERS}
 * </p>
 * <p>
 * This operation can only be executed before processing templates for the
 * first time. Once a template is processed, the template engine is
 * considered to be <i>initialized</i>, and from then on any attempt to
 * change its configuration will result in an exception.
 * </p>
 * 
 * @param templateModeHandler
 *            the new Template Mode Handler to be added.
 * @return this for fluent use
 */
public ThymeleafEngineConfigBuilder<P> addTemplateModeHandler(final ITemplateModeHandler templateModeHandler) {
	templateModeHandlers().add(templateModeHandler);
	return this;
}
 
开发者ID:groupe-sii,项目名称:ogham,代码行数:26,代码来源:ThymeleafEngineConfigBuilder.java


示例13: setDefaultTemplateModeHandlers

import org.thymeleaf.templatemode.ITemplateModeHandler; //导入依赖的package包/类
/**
 * <p>
 * Sets the default Template Mode Handlers. These are used when no Template
 * Mode Handlers are set via the {@link #setTemplateModeHandlers(Set)} or
 * {@link #addTemplateModeHandler(ITemplateModeHandler)} methods.
 * </p>
 * <p>
 * This method is useful for creating subclasses of <tt>TemplateEngine</tt>
 * that establish default configurations for Template Mode Handlers.
 * </p>
 * <p>
 * By default, template mode handlers set are
 * {@link StandardTemplateModeHandlers#ALL_TEMPLATE_MODE_HANDLERS}
 * </p>
 * <p>
 * This operation can only be executed before processing templates for the
 * first time. Once a template is processed, the template engine is
 * considered to be <i>initialized</i>, and from then on any attempt to
 * change its configuration will result in an exception.
 * </p>
 * 
 * @param defaultTemplateModeHandlers
 *            the default Template Mode Handlers.
 * @return this for fluent use
 */
public ThymeleafEngineConfigBuilder<P> setDefaultTemplateModeHandlers(final Set<? extends ITemplateModeHandler> defaultTemplateModeHandlers) {
	defaultTemplateModeHandlers().clear();
	defaultTemplateModeHandlers().addAll(defaultTemplateModeHandlers);
	return this;
}
 
开发者ID:groupe-sii,项目名称:ogham,代码行数:31,代码来源:ThymeleafEngineConfigBuilder.java



注:本文中的org.thymeleaf.templatemode.ITemplateModeHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ExpressionEvaluatorImpl类代码示例发布时间:2022-05-23
下一篇:
Java Instance类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap