@FunctionalInterface public interface ContextSupport
| 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. |
<T> T getBean(String name, Class<T> type)
name and type from Spring context.T - 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.