本文整理汇总了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;
}
示例2: getScope
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public String getScope()
{
//Logger.info( this, "Got to getScope()" );
return ViewContext.REQUEST;
}
示例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;
}
示例5: getScope
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public String getScope () {
return ViewContext.APPLICATION;
}
示例6: getScope
import org.apache.velocity.tools.view.context.ViewContext; //导入依赖的package包/类
@Override
public String getScope() {
return ViewContext.APPLICATION;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}