|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.co.hit.live.web.mapper.CachedMapReader
public class CachedMapReader
주어진 ID에 해당되는 ActionMap 객체를 반환해주는 클래스이다. 내부적으로 MapParser를 사용하여
Map 정의 파일(xml)을 파싱하며, MapDirectory를 사용하여 Map 정의 파일에 대한 File
객체를 얻어온다.
한번 파싱되어 생성된 ActionMap 객체는 내부에 캐싱하여 재사용한다.
| Field Summary | |
|---|---|
protected Map<String,ActionMap> |
cache
한번 파싱되어 생성된 ActionMap 객체를 저장해 놓는다. |
protected MapDirectory |
mapDir
Map 파일 객체를 얻어오기 위한 MapDirectory 객체 |
| Constructor Summary | |
|---|---|
CachedMapReader(String root)
생성자. |
|
| Method Summary | |
|---|---|
protected void |
cacheMap(String id,
ActionMap smap)
주어진 ActionMap 객체를 cahch에 저장한다. |
ActionMap |
getMap(String path,
String id)
주어진 ID에 해당되는 SubmissionMap 객체를 반환한다. |
String |
getPath()
Map 파일을 얻어 오기 위하여 사용하는 디렉토리 경로나 DB 주소 등의 정보를 리턴한다. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,ActionMap> cache
protected MapDirectory mapDir
| Constructor Detail |
|---|
public CachedMapReader(String root)
root - | Method Detail |
|---|
public String getPath()
MapReader
getPath in interface MapReader
public ActionMap getMap(String path,
String id)
throws IOException,
SAXException
MapReader
getMap in interface MapReaderpath - map 파일이 있는 상대 경로id - map 파일의 ID
IOException
SAXException
protected void cacheMap(String id,
ActionMap smap)
id - smap -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||