本文整理汇总了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"));
}
示例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);
}
示例3: getViewFactory
import org.ofbiz.webapp.view.ViewFactory; //导入依赖的package包/类
/** Returns the ViewFactory Object. */
public ViewFactory getViewFactory() {
return viewFactory;
}