public abstract class BeanFactoryUtils extends Object
BeanFactory Utilities classBeanFactory,
ConfigurableBeanFactory,
BeanFactoryUtils| Constructor and Description |
|---|
BeanFactoryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addApplicationListener(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 from
BeanFactory |
static <T> T |
getOptionalBean(org.springframework.beans.factory.ListableBeanFactory beanFactory,
String beanName,
Class<T> beanType)
Get optional Bean
|
public static boolean addApplicationListener(org.springframework.context.ApplicationContext applicationContext,
org.springframework.context.ApplicationListener listener)
public static <T> T getOptionalBean(org.springframework.beans.factory.ListableBeanFactory beanFactory,
String beanName,
Class<T> beanType)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.