@Component @Scope(value="singleton") public class AdapterSpringContextProvider extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
AdapterSpringContextProvider() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getBean(Class<T> beanClass)
Get a Spring bean by type.
|
static Object |
getBean(String beanName)
Get a Spring bean by name.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic static <T> T getBean(Class<T> beanClass)
T - the type of the bean classbeanClass - the class of the beanCopyright © 2020. All rights reserved.