rcpapplication.java
来自「基于RCP实现的CRM系统, 数据库使用mysql数据库, 是学习RCP应用和插」· Java 代码 · 共 31 行
JAVA
31 行
package superCRM.business;
import superCRM.model.IContactSerivce;
import superCRM.model.ICustomerSerivce;
import superCRM.model.ISuperApplication;
public class RcpApplication implements ISuperApplication {
/** 定义客户服务对象 */
private ICustomerSerivce customerSerivce = null;
/** 定义联系人服务对象 */
private IContactSerivce contactSerivce = null;
/** 获得客户服务对象 */
public ICustomerSerivce getCustomerSerivce() {
if (customerSerivce == null) {
customerSerivce = new CustomerSerivce();
}
return customerSerivce;
}
/** 获得联系人服务对象 */
public IContactSerivce getContactSerivce() {
if (contactSerivce == null) {
contactSerivce = new ContactSerivce();
}
return contactSerivce;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?