Package com.poscoict.glueframework.bean
Interface GlueBeanFactory
- All Known Implementing Classes:
GlueBeanFactoryBootImpl,GlueBeanFactoryImpl
public interface GlueBeanFactory
BeanFactory 인터페이스.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsBean(String key) 키 값에 해당하는 bean의 존재여부를 반환한다.String[]getBeanNamesForType(Class<?> requiredType) 26.06.05 pd299368 지정한 타입에 해당하는 모든 Bean의 이름 목록을 반환한다.getBeanObject(String key) 키 값에 해당하는 Singleton 오브젝트를 얻는다.<T> TgetBeanObject(String key, Class<T> requiredType) 키 값에 해당하는 Singleton 오브젝트를 얻는다.
-
Method Details
-
containsBean
키 값에 해당하는 bean의 존재여부를 반환한다.- Parameters:
key- Singleton 오브젝트를 구별할 수 있는 유일한 키- Returns:
- true - key에 해당하는 bean이 존재, false - key에 해당하는 bean이 없음.
-
getBeanObject
키 값에 해당하는 Singleton 오브젝트를 얻는다.- Parameters:
key- Singleton 오브젝트를 구별할 수 있는 유일한 키- Returns:
- Singleton 오브젝트
-
getBeanObject
키 값에 해당하는 Singleton 오브젝트를 얻는다.- Parameters:
key- Singleton 오브젝트를 구별할 수 있는 유일한 키requiredType- 오브젝트 타입- Returns:
- Singleton 오브젝트
-
getBeanNamesForType
26.06.05 pd299368 지정한 타입에 해당하는 모든 Bean의 이름 목록을 반환한다.Spring Framework 환경:
ClassPathXmlApplicationContext에서 조회
Spring Boot 환경: BootApplicationContext에서 조회- Parameters:
requiredType- 조회할 Bean 타입- Returns:
- 해당 타입의 Bean 이름 배열 (없으면 빈 배열)
-