public enum SpringBeanUtils extends Enum<SpringBeanUtils>
| 枚举常量和说明 |
|---|
INSTANCE
Instance spring bean utils.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
getBean(Class<T> type)
acquire spring bean.
|
void |
registerBean(Class<?> type,
Object object)
Register bean.
|
void |
setCfgContext(org.springframework.context.ConfigurableApplicationContext cfgContext)
set application context.
|
static SpringBeanUtils |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SpringBeanUtils[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SpringBeanUtils INSTANCE
public static SpringBeanUtils[] values()
for (SpringBeanUtils c : SpringBeanUtils.values()) System.out.println(c);
public static SpringBeanUtils valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public <T> T getBean(Class<T> type)
T - classtype - typepublic void registerBean(Class<?> type, Object object)
type - the typeobject - the objectpublic void setCfgContext(org.springframework.context.ConfigurableApplicationContext cfgContext)
cfgContext - application contextCopyright © 2022 dromara. All rights reserved.