本文整理了Java中org.apache.struts2.dispatcher.Dispatcher.setInstance()
方法的一些代码示例,展示了Dispatcher.setInstance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dispatcher.setInstance()
方法的具体详情如下:
包路径:org.apache.struts2.dispatcher.Dispatcher
类名称:Dispatcher
方法名:setInstance
暂无
代码示例来源:origin: com.googlecode.struts2-conversation/struts2-junit4-plugin
@After
public void tearDown() throws Exception {
if (configurationManager != null) {
configurationManager.destroyConfiguration();
configurationManager = null;
}
ActionContext.setContext(null);
this.configurationManager = null;
this.configuration = null;
this.container = null;
this.actionProxyFactory = null;
Dispatcher.setInstance(null);
session = null;
httpSession = null;
}
代码示例来源:origin: com.googlecode.struts2-conversation/struts2-junit4-plugin
protected Dispatcher initDispatcher(Map<String, String> params) {
Dispatcher du = new Dispatcher(servletContext, params);
du.init();
Dispatcher.setInstance(du);
ValueStack stack = ((ValueStackFactory) du.getContainer().getInstance(ValueStackFactory.class)).createValueStack();
stack.getContext().put("com.opensymphony.xwork2.ActionContext.container", du.getContainer());
ActionContext.setContext(new ActionContext(stack.getContext()));
configurationManager = du.getConfigurationManager();
configuration = configurationManager.getConfiguration();
container = configuration.getContainer();
return du;
}
代码示例来源:origin: entando/entando-core
this.dispatcher = new Dispatcher(servletContext, params);
this.dispatcher.init();
Dispatcher.setInstance(this.dispatcher);
内容来源于网络,如有侵权,请联系作者删除!