当前位置: 首页>>代码示例>>Java>>正文


Java ViewFactory类代码示例

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


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

示例1: RequestHandler

import org.ofbiz.webapp.view.ViewFactory; //导入依赖的package包/类
private RequestHandler(ServletContext context) {
    // init the ControllerConfig, but don't save it anywhere, just load it into the cache
    this.controllerConfigURL = ConfigXMLReader.getControllerConfigURL(context);
    try {
        ConfigXMLReader.getControllerConfig(this.controllerConfigURL);
    } catch (WebAppConfigurationException e) {
        // FIXME: controller.xml errors should throw an exception.
        Debug.logError(e, "Exception thrown while parsing controller.xml file: ", module);
    }
    this.viewFactory = new ViewFactory(context, this.controllerConfigURL);
    this.eventFactory = new EventFactory(context, this.controllerConfigURL);

    this.forceHttpSession = "true".equalsIgnoreCase(context.getInitParameter("forceHttpSession"));
    this.trackServerHit = !"false".equalsIgnoreCase(context.getInitParameter("track-serverhit"));
    this.trackVisit = !"false".equalsIgnoreCase(context.getInitParameter("track-visit"));
    this.cookies = !"false".equalsIgnoreCase(context.getInitParameter("cookies"));
    this.charset = context.getInitParameter("charset");
    
    // SCIPIO: New (currently true by default)
    this.allowOverrideViewUri = !"false".equalsIgnoreCase(context.getInitParameter("allowOverrideViewUri"));
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:22,代码来源:RequestHandler.java

示例2: init

import org.ofbiz.webapp.view.ViewFactory; //导入依赖的package包/类
public void init(ServletContext context) {
    if (Debug.verboseOn()) Debug.logVerbose("[RequestHandler Loading...]", module);
    this.context = context;

    // init the ControllerConfig, but don't save it anywhere
    this.controllerConfigURL = ConfigXMLReader.getControllerConfigURL(context);
    ConfigXMLReader.getControllerConfig(this.controllerConfigURL);
    this.viewFactory = new ViewFactory(this);
    this.eventFactory = new EventFactory(this);
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:11,代码来源:RequestHandler.java

示例3: getViewFactory

import org.ofbiz.webapp.view.ViewFactory; //导入依赖的package包/类
/** Returns the ViewFactory Object. */
public ViewFactory getViewFactory() {
    return viewFactory;
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:5,代码来源:RequestHandler.java


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