📄 webcontextholder.java
字号:
package com.esri.solutions.jitk.web.tasks;
import org.apache.log4j.Logger;
import com.esri.adf.web.data.WebContext;
public class WebContextHolder implements IWebContextAware {
private static final Logger _logger = Logger.getLogger(WebContextHolder.class.getName());
protected WebContext _webContext = null;
public void setContext(WebContext context) {
if(context != null) {
this._webContext = context;
}
else {
_logger.error("WebContext set to null");
throw new NullPointerException("WebContext set to null");
}
}
public WebContext getContext() {
return _webContext;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -