📄 servicelocator.java
字号:
package com.jeffhanson.rest.server;
import java.util.HashMap;
import com.jeffhanson.atompub.service.CollectionService;
public class ServiceLocator
{
private static HashMap<String, BusinessService> services =
new HashMap<String, BusinessService>();
public static BusinessService locateService(String contextRootPath,
String contextPath,
String uri)
throws ServiceLocatorException
{
// TODO locate services mapped to URIs
//
BusinessService service = services.get(uri);
if (service == null)
{
service = new CollectionService(contextRootPath, contextPath);
services.put(uri, service);
}
return service;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -