public final class SpringBeanUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getBean(Class<T> type)
acquire spring bean.
|
static SpringBeanUtils |
getInstance()
get SpringBeanUtils.
|
void |
setCfgContext(org.springframework.context.ConfigurableApplicationContext cfgContext)
set application context.
|
public static SpringBeanUtils getInstance()
public <T> T getBean(Class<T> type)
T - classtype - typepublic void setCfgContext(org.springframework.context.ConfigurableApplicationContext cfgContext)
cfgContext - application contextCopyright © 2021 The Apache Software Foundation. All rights reserved.