Package com.poscoict.glueframework.bean
Class GlueBeanFactoryBootImpl
java.lang.Object
com.poscoict.glueframework.bean.GlueBeanFactoryBootImpl
- All Implemented Interfaces:
GlueBeanFactory,Aware,ApplicationContextAware
public class GlueBeanFactoryBootImpl
extends Object
implements GlueBeanFactory, ApplicationContextAware
BeanFactory 구현 Class. Implementation of the
GlueBeanFactory interface.-
Constructor Summary
ConstructorsConstructorDescription생성자(constructor).GlueBeanFactoryBootImpl(ApplicationContext applicationContext) 생성자(constructor). -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsBean(String key) 키 값에 해당하는 bean의 존재여부를 반환한다.Boot ApplicationContext를 반환한다.String[]getBeanNamesForType(Class<?> requiredType) 26.06.05 pd299368 지정한 타입에 해당하는 모든 Bean의 이름 목록을 반환한다.getBeanObject(String key) 키 값에 해당하는 Singleton 오브젝트를 얻는다.<T> TgetBeanObject(String key, Class<T> requiredType) 키 값에 해당하는 Singleton 오브젝트를 얻는다.voidsetApplicationContext(ApplicationContext applicationContext) Spring이 Bean 등록 후 자동으로 ApplicationContext를 주입할 때 호출.
-
Constructor Details
-
GlueBeanFactoryBootImpl
public GlueBeanFactoryBootImpl()생성자(constructor). -
GlueBeanFactoryBootImpl
생성자(constructor).- Parameters:
applicationContext- Spring Boot ApplicationContext
-
-
Method Details
-
setApplicationContext
Spring이 Bean 등록 후 자동으로 ApplicationContext를 주입할 때 호출. 생성자에서 이미 설정되어 있으므로 갱신만 수행하고 별도 로그는 출력하지 않는다.- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
getApplicationContext
Boot ApplicationContext를 반환한다.- Returns:
- Spring Boot ApplicationContext
-
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이 없음.
-
getBeanNamesForType
Description copied from interface:GlueBeanFactory26.06.05 pd299368 지정한 타입에 해당하는 모든 Bean의 이름 목록을 반환한다.Spring Framework 환경:
ClassPathXmlApplicationContext에서 조회
Spring Boot 환경: BootApplicationContext에서 조회- Specified by:
getBeanNamesForTypein interfaceGlueBeanFactory- Parameters:
requiredType- 조회할 Bean 타입- Returns:
- 해당 타입의 Bean 이름 배열 (없으면 빈 배열)
-