public class SpringUtils extends Object
| Constructor and Description |
|---|
SpringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getBeanOfType(org.springframework.context.ApplicationContext applicationContext,
Class<T> aClass)
Search recursively in current and parent applicationContext's for Bean of Type T
|
public static <T> T getBeanOfType(org.springframework.context.ApplicationContext applicationContext,
Class<T> aClass)
T - Type of bean to searchapplicationContext - Spring application context to start searching fromaClass - Class type of bean to searchCopyright © 2017 JBoss by Red Hat. All Rights Reserved.