Package com.poscoict.glueframework.bean
Class GlueBeanFactoryImpl
java.lang.Object
com.poscoict.glueframework.bean.GlueBeanFactoryImpl
- All Implemented Interfaces:
GlueBeanFactory
BeanFactory 구현 Class. Implementation of the
GlueBeanFactory interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplicationContextApplicationContextstatic final String -
Constructor Summary
ConstructorsConstructorDescription생성자(constructor).GlueBeanFactoryImpl(String configFile) 생성자(constructor).GlueBeanFactoryImpl(String... configFiles) 생성자(constructor). -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsBean(String key) 키 값에 해당하는 bean의 존재여부를 반환한다.getBeanObject(String key) 키 값에 해당하는 Singleton 오브젝트를 얻는다.<T> TgetBeanObject(String key, Class<T> requiredType) 키 값에 해당하는 Singleton 오브젝트를 얻는다.Application should not invoke this method!
-
Field Details
-
DEFAULT_FILE_NAME
- See Also:
-
context
ApplicationContext
-
-
Constructor Details
-
GlueBeanFactoryImpl
public GlueBeanFactoryImpl()생성자(constructor). -
GlueBeanFactoryImpl
생성자(constructor).- Parameters:
configFile-
-
GlueBeanFactoryImpl
생성자(constructor).- Parameters:
configFiles-
-
-
Method Details
-
getBeanObject
Description copied from interface:GlueBeanFactory키 값에 해당하는 Singleton 오브젝트를 얻는다.- Specified by:
getBeanObjectin interfaceGlueBeanFactory- Parameters:
key- Singleton 오브젝트를 구별할 수 있는 유일한 키- Returns:
- Singleton 오브젝트
-
getBeanObject
Description copied from interface:GlueBeanFactory키 값에 해당하는 Singleton 오브젝트를 얻는다.- Specified by:
getBeanObjectin interfaceGlueBeanFactory- Parameters:
key- Singleton 오브젝트를 구별할 수 있는 유일한 키requiredType- 오브젝트 타입- Returns:
- Singleton 오브젝트
-
containsBean
Description copied from interface:GlueBeanFactory키 값에 해당하는 bean의 존재여부를 반환한다.- Specified by:
containsBeanin interfaceGlueBeanFactory- Parameters:
key- Singleton 오브젝트를 구별할 수 있는 유일한 키- Returns:
- true - key에 해당하는 bean이 존재, false - key에 해당하는 bean이 없음.
-
getWrappedBeanFactory
Application should not invoke this method!- Returns:
- Wrapped bean factory
-
closeContext
public void closeContext()
-