📄 netbarbean.java
字号:
package com.wxd.netbar.presentation;
import javax.faces.application.Application;
import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;
import org.springframework.web.context.WebApplicationContext;
import com.wxd.netbar.domain.NetBar;
import com.wxd.netbar.persistence.dao.NetBarDaoImpl;
import com.wxd.netbar.service.PlatformMgServiceImpl;
import com.wxd.netbar.util.SpringWebUtil;
public class NetBarBean {
private NetBar netbar=null;
public NetBarBean(){
init();
}
private void init() {
PlatformMgServiceImpl pm=(PlatformMgServiceImpl)SpringWebUtil.getBean((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), "platformMgService");
netbar=pm.getCurrentNetBarInfo();
}
public NetBar getNetbar() {
return netbar;
}
public void setNetbar(NetBar netbar) {
this.netbar = netbar;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -