本文整理汇总了Java中org.apache.velocity.tools.view.context.ViewContext类的典型用法代码示例。如果您正苦于以下问题:Java ViewContext类的具体用法?Java ViewContext怎么用?Java ViewContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ViewContext类属于org.apache.velocity.tools.view.context包,在下文中一共展示了ViewContext类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getInstance
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public Object getInstance( Object object )
{
//Logger.info( this, "Got to getInstance( Object )" );
TemplateViewTool templateViewTool = new TemplateViewTool();
templateViewTool.init( object );
setScope( ViewContext.REQUEST );
return templateViewTool;
}
开发者ID:nkeiter,项目名称:generic-dotCMS-plugin-code-examples,代码行数:13,代码来源:TemplateViewToolInfo.java
示例2: getScope
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public String getScope()
{
//Logger.info( this, "Got to getScope()" );
return ViewContext.REQUEST;
}
开发者ID:nkeiter,项目名称:generic-dotCMS-plugin-code-examples,代码行数:8,代码来源:TemplateViewToolInfo.java
示例3: getInstance
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public Object getInstance( Object object )
{
//Logger.info( this, "Got to getInstance( Object )" );
SelfParsingBeanViewTool selfParsingBeanViewTool = new SelfParsingBeanViewTool();
selfParsingBeanViewTool.init( object );
setScope( ViewContext.REQUEST );
return selfParsingBeanViewTool;
}
开发者ID:nkeiter,项目名称:generic-dotCMS-plugin-code-examples,代码行数:13,代码来源:SelfParsingBeanViewToolInfo.java
示例4: getScope
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public String getScope()
{
Logger.info( this, "Got to getScope()" );
return ViewContext.REQUEST;
}
开发者ID:nkeiter,项目名称:generic-dotCMS-plugin-code-examples,代码行数:8,代码来源:TemplateViewToolInfo.java
示例5: getScope
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public String getScope () {
return ViewContext.APPLICATION;
}
开发者ID:dotCMS,项目名称:plugin-xmltool-with-auth,代码行数:5,代码来源:XmlAuthToolInfo.java
示例6: getScope
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public String getScope() {
return ViewContext.APPLICATION;
}
开发者ID:aquent,项目名称:dotcms.plugins.geolocation,代码行数:5,代码来源:GeoIPInfo.java
示例7: getInstance
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public Object getInstance ( Object initData ) {
OAuthTool viewTool = new OAuthTool();
viewTool.init( initData );
setScope( ViewContext.APPLICATION );
return viewTool;
}
开发者ID:dotCMS,项目名称:plugin-dotcms-oauth,代码行数:11,代码来源:OAuthToolInfo.java
示例8: getInstance
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public Object getInstance(Object initData) {
GeoIP viewTool = new GeoIP();
viewTool.init(initData);
setScope(ViewContext.APPLICATION);
return viewTool;
}
开发者ID:aquent,项目名称:dotcms.plugins.geolocation,代码行数:11,代码来源:GeoIPInfo.java
示例9: getInstance
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public Object getInstance(Object initData) {
SpamMeNot viewTool = new SpamMeNot();
viewTool.init(initData);
setScope(ViewContext.APPLICATION);
return viewTool;
}
开发者ID:aquent,项目名称:dotcms.plugins.spammenot,代码行数:11,代码来源:SpamMeNotInfo.java
示例10: getInstance
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public Object getInstance(Object initData) {
TwitterTool viewTool = new TwitterTool();
viewTool.init(initData);
setScope(ViewContext.APPLICATION);
return viewTool;
}
开发者ID:aquent,项目名称:dotcms.plugins.twittertool,代码行数:11,代码来源:TwitterToolInfo.java
注:本文中的org.apache.velocity.tools.view.context.ViewContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论