|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.poscoict.glueframework.biz.control.GlueServiceLoader
public class GlueServiceLoader
CacheLoader 구현체. GlueServiceLoader는 Cache에서 해당 Service객체(GlueService)를 찾고 없으면 Service.xml을 읽어서 Cache에 저장한다.
Bean Property - rootPath : (필수) default는 'service' - extraServiceFiles : (선택) 예제사용 예# 1 사용 예# 2 사용 예# 3
extra/security-serivce.xml
Constructor Summary | |
---|---|
GlueServiceLoader()
생성자(constructor). |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
String |
getRootPath()
getter method. |
Object |
loadCacheObject(Object cacheKey,
String regionName)
주어진 캐쉬 영역명에 해당하는 캐쉬영역에서 캐쉬 키를 사용하여 오브젝트를 로딩함 |
void |
setExtraServiceFiles(List<String> extraServiceFiles)
setter method for DI. |
void |
setRootPath(String serviceRootPath)
setter method for DI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlueServiceLoader()
Method Detail |
---|
public String getRootPath()
public void setRootPath(String serviceRootPath)
serviceRootPath
- 2가지 type이 가능하며, 경로와 property name임 첫번째는 경로일 경우로 상대경로이며, 디렉토리 구분은 슬래시(/)나 역슬래시 (\)로 해야함. 두번째는 property name일 경우로 glue.properties에 들어가는 key를 사용함. serviceRootPath it depends on Thread.currentThread().getContextClassLoader()
public void setExtraServiceFiles(List<String> extraServiceFiles)
public Object loadCacheObject(Object cacheKey, String regionName) throws GlueException
GlueCacheLoader
loadCacheObject
in interface GlueCacheLoader
cacheKey
- 캐쉬 키regionName
- 캐쉬 영역명
GlueException
- - 캐쉬관련 에러발생 시public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |