类 BeanFactory


  • public class BeanFactory
    extends Object
    作者:
    qinman, zhangchongjie
    Date:
    2022/12/20
    • 构造器概要

      构造器 
      构造器 说明
      BeanFactory()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static org.springframework.beans.factory.support.DefaultListableBeanFactory addBean​(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory, String beanName)
      向BeanFactory中添加实体类对象
      static void delBean​(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory, String beanName)
      从BeanFactory中删除实体类对象
      static org.springframework.beans.factory.support.DefaultListableBeanFactory getBeanFactory​(org.springframework.context.ConfigurableApplicationContext applicationContext)
      从spring应用上下文中获取BeanFactory
    • 构造器详细资料

      • BeanFactory

        public BeanFactory()
    • 方法详细资料

      • addBean

        public static org.springframework.beans.factory.support.DefaultListableBeanFactory addBean​(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory,
                                                                                                   String beanName)
        向BeanFactory中添加实体类对象
        参数:
        beanFactory - spring的BeanFactory
        beanName - 实体类的名称,例如net.risesoft.fileflow.service.Test1
        返回:
      • delBean

        public static void delBean​(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory,
                                   String beanName)
        从BeanFactory中删除实体类对象
        参数:
        beanFactory - spring的BeanFactory
        beanName - 实体类的名称,例如net.risesoft.fileflow.service.Test1
      • getBeanFactory

        public static org.springframework.beans.factory.support.DefaultListableBeanFactory getBeanFactory​(org.springframework.context.ConfigurableApplicationContext applicationContext)
        从spring应用上下文中获取BeanFactory
        参数:
        applicationContext - spring应用上下文
        返回: