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 Details

    • GlueBeanFactoryBootImpl

      public GlueBeanFactoryBootImpl()
      생성자(constructor).
    • GlueBeanFactoryBootImpl

      public GlueBeanFactoryBootImpl(ApplicationContext applicationContext)
      생성자(constructor).
      Parameters:
      applicationContext - Spring Boot ApplicationContext
  • Method Details

    • setApplicationContext

      public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
      Spring이 Bean 등록 후 자동으로 ApplicationContext를 주입할 때 호출. 생성자에서 이미 설정되어 있으므로 갱신만 수행하고 별도 로그는 출력하지 않는다.
      Specified by:
      setApplicationContext in interface ApplicationContextAware
      Throws:
      BeansException
    • getApplicationContext

      public ApplicationContext getApplicationContext()
      Boot ApplicationContext를 반환한다.
      Returns:
      Spring Boot ApplicationContext
    • getBeanObject

      public Object getBeanObject(String key)
      Description copied from interface: GlueBeanFactory
      키 값에 해당하는 Singleton 오브젝트를 얻는다.
      Specified by:
      getBeanObject in interface GlueBeanFactory
      Parameters:
      key - Singleton 오브젝트를 구별할 수 있는 유일한 키
      Returns:
      Singleton 오브젝트
    • getBeanObject

      public <T> T getBeanObject(String key, Class<T> requiredType)
      Description copied from interface: GlueBeanFactory
      키 값에 해당하는 Singleton 오브젝트를 얻는다.
      Specified by:
      getBeanObject in interface GlueBeanFactory
      Parameters:
      key - Singleton 오브젝트를 구별할 수 있는 유일한 키
      requiredType - 오브젝트 타입
      Returns:
      Singleton 오브젝트
    • containsBean

      public boolean containsBean(String key)
      Description copied from interface: GlueBeanFactory
      키 값에 해당하는 bean의 존재여부를 반환한다.
      Specified by:
      containsBean in interface GlueBeanFactory
      Parameters:
      key - Singleton 오브젝트를 구별할 수 있는 유일한 키
      Returns:
      true - key에 해당하는 bean이 존재, false - key에 해당하는 bean이 없음.
    • getBeanNamesForType

      public String[] getBeanNamesForType(Class<?> requiredType)
      Description copied from interface: GlueBeanFactory
      26.06.05 pd299368 지정한 타입에 해당하는 모든 Bean의 이름 목록을 반환한다.

      Spring Framework 환경: ClassPathXmlApplicationContext에서 조회
      Spring Boot 환경: Boot ApplicationContext에서 조회

      Specified by:
      getBeanNamesForType in interface GlueBeanFactory
      Parameters:
      requiredType - 조회할 Bean 타입
      Returns:
      해당 타입의 Bean 이름 배열 (없으면 빈 배열)