类 BeanFactoryUtils
- java.lang.Object
-
- com.alibaba.dubbo.config.spring.util.BeanFactoryUtils
-
public abstract class BeanFactoryUtils extends Object
BeanFactoryUtilities class- 另请参阅:
BeanFactory,ConfigurableBeanFactory,BeanFactoryUtils
-
-
构造器概要
构造器 构造器 说明 BeanFactoryUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static booleanaddApplicationListener(org.springframework.context.ApplicationContext applicationContext, org.springframework.context.ApplicationListener listener)static <T> List<T>getBeans(org.springframework.beans.factory.ListableBeanFactory beanFactory, String[] beanNames, Class<T> beanType)Gets name-matched Beans fromBeanFactorystatic <T> TgetOptionalBean(org.springframework.beans.factory.ListableBeanFactory beanFactory, String beanName, Class<T> beanType)Get optional Bean
-
-
-
方法详细资料
-
addApplicationListener
public static boolean addApplicationListener(org.springframework.context.ApplicationContext applicationContext, org.springframework.context.ApplicationListener listener)
-
getOptionalBean
public static <T> T getOptionalBean(org.springframework.beans.factory.ListableBeanFactory beanFactory, String beanName, Class<T> beanType)Get optional Bean
-
-