public class ContextSupportImpl extends Object implements ContextSupport
| Constructor and Description |
|---|
ContextSupportImpl(org.springframework.context.ApplicationContext context) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getBean(String name,
Class<T> type)
Retrieves a required bean with specified
name and type from Spring context. |
public ContextSupportImpl(org.springframework.context.ApplicationContext context)
public <T> T getBean(String name, Class<T> type)
ContextSupportname and type from Spring context.getBean in interface ContextSupportT - generic type parameter of the bean to be retrieved.name - name of the bean to be retrieved.type - type of the bean to be retrievedBeanFactory.getBean(String, Class)Copyright © 2019. All rights reserved.