public final class SpringUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
getBeanOfType(org.springframework.context.ApplicationContext applicationContext,
java.lang.Class<T> aClass)
Search recursively in current and parent applicationContext's for Bean of
Type T
|
static EsDataLoader |
getDataLoader(org.springframework.context.ApplicationContext appContext)
|
public static <T> T getBeanOfType(org.springframework.context.ApplicationContext applicationContext, java.lang.Class<T> aClass)
T
- Type of bean to searchapplicationContext
- Spring application context to start searching fromaClass
- Class type of bean to searchpublic static EsDataLoader getDataLoader(org.springframework.context.ApplicationContext appContext)
appContext
- the Spring ApplicationContext
EsDataLoader
that can insert or remove data from the underlying ES Server.