public class EgovPropertyServiceImpl extends Object implements EgovPropertyService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ResourceLoaderAware
NOTE: 이 서비스를 통해 어플리케이션에서 유일한 키값으로 키/값쌍을 가지고 오도록 서비스 한다.
== 개정이력(Modification Information) == 수정일 수정자 수정내용 ------- -------- --------------------------- 2009.02.01 김태호 최초 생성 2014.08.12 Vincent Han "properties" 속성이 없는 경우 처리
| Constructor and Description |
|---|
EgovPropertyServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Bean 초기화 함수로 최초 생성시 필요한 Property 세티처리
|
void |
destroy()
서비스 종료처리
|
Collection<String> |
getAllKeyValue()
전체 키/값 쌍 얻기
|
boolean |
getBoolean(String name)
boolean 타입의 프로퍼티 값 얻기
|
boolean |
getBoolean(String name,
boolean def)
boolean 타입의 프로퍼티 값 얻기(디폴트값을 입력받음)
|
double |
getDouble(String name)
double 타입의 프로퍼티 값 얻기
|
double |
getDouble(String name,
double def)
double 타입의 프로퍼티 값 얻기
|
float |
getFloat(String name)
float 타입의 프로퍼티 값 얻기
|
float |
getFloat(String name,
float def)
float 타입의 프로퍼티 값 얻기
|
int |
getInt(String name)
int 타입의 프로퍼티 값 얻기
|
int |
getInt(String name,
int def)
int 타입의 프로퍼티 값 얻기
|
Iterator<?> |
getKeys()
프로퍼티 키 목록 읽기
|
Iterator<?> |
getKeys(String prefix)
prefix를 이용한 키 목록 읽기
|
long |
getLong(String name)
long 타입의 프로퍼티 값 얻기
|
long |
getLong(String name,
long def)
long 타입의 프로퍼티 값 얻기
|
String |
getString(String name)
String 타입의 프로퍼티 값 얻기
|
String |
getString(String name,
String def)
String 타입의 프로퍼티 값 얻기
|
String[] |
getStringArray(String name)
String[] 타입의 프로퍼티 값 얻기
|
Vector<?> |
getVector(String name)
Vector 타입의 프로퍼티 값 얻기
|
Vector<?> |
getVector(String name,
Vector<?> def)
Vector 타입의 프로퍼티 값 얻기
|
void |
refreshPropertyFiles()
resource 변경시 refresh
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
ApplicationContext 세팅
|
void |
setExtFileName(Set<?> extFileName)
extFileName을 지정할 때 Attribute로 정의
|
void |
setProperties(Map<?,?> properties)
properties를 지정할 때 Attribute로 정의
|
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
리소스 로더 세팅
|
public boolean getBoolean(String name)
getBoolean in interface EgovPropertyServicename - 프로퍼티키public boolean getBoolean(String name, boolean def)
getBoolean in interface EgovPropertyServicename - 프로퍼티키def - 디폴트 값public double getDouble(String name)
getDouble in interface EgovPropertyServicename - 프로퍼티키public double getDouble(String name, double def)
getDouble in interface EgovPropertyServicename - 프로퍼티키def - 디폴트 값public float getFloat(String name)
getFloat in interface EgovPropertyServicename - 프로퍼티키public float getFloat(String name, float def)
getFloat in interface EgovPropertyServicename - 프로퍼티키def - 디폴트 값public int getInt(String name)
getInt in interface EgovPropertyServicename - 프로퍼티키public int getInt(String name, int def)
getInt in interface EgovPropertyServicename - 프로퍼티키def - 디폴트 값public Iterator<?> getKeys()
getKeys in interface EgovPropertyServicepublic Iterator<?> getKeys(String prefix)
getKeys in interface EgovPropertyServiceprefix - prefixpublic long getLong(String name)
getLong in interface EgovPropertyServicename - 프로퍼티키public long getLong(String name, long def)
getLong in interface EgovPropertyServicename - 프로퍼티키def - 디폴트 값public String getString(String name)
getString in interface EgovPropertyServicename - 프로퍼티키public String getString(String name, String def)
getString in interface EgovPropertyServicename - 프로퍼티키def - 디폴트 값public String[] getStringArray(String name)
getStringArray in interface EgovPropertyServicename - 프로퍼티키public Vector<?> getVector(String name)
getVector in interface EgovPropertyServicename - 프로퍼티키public Vector<?> getVector(String name, Vector<?> def)
getVector in interface EgovPropertyServicename - 프로퍼티키def - 디폴트 값public Collection<String> getAllKeyValue()
getAllKeyValue in interface EgovPropertyServicepublic void refreshPropertyFiles()
throws FdlException
refreshPropertyFiles in interface EgovPropertyServiceFdlExceptionpublic void afterPropertiesSet()
throws FdlException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - fail to initializeFdlExceptionpublic void setExtFileName(Set<?> extFileName)
extFileName - public void setProperties(Map<?,?> properties)
properties - public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - to be set by containerorg.springframework.beans.BeansExceptionCopyright © 2015. All rights reserved.