📄 servicehandeler.java
字号:
package net.robin.crm.ui;
import net.robin.crm.service.CRMService;
import net.robin.crm.service.CRMServiceFactory;
import net.robin.crm.service.ConfigException;
import net.robin.crm.service.InstanceExeption;
import net.robin.crm.service.ServiceException;
public class ServiceHandeler {
private static ServiceHandeler instance;
private CRMService service;
private ServiceHandeler() {
super();
}
public static ServiceHandeler getInstance() {
if(instance==null){
instance = new ServiceHandeler();
}
return instance;
}
public CRMService getService() throws ConfigException, InstanceExeption, ServiceException {
if(service == null){
CRMServiceFactory factory = CRMServiceFactory.getInstance();
service = factory.getCRMService();
}
return service;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -