@Service @Order(value=-2147483648) public final class BeanUtil extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
BeanUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Class<?>> |
getAnnotatedBeans(Class<? extends Annotation> annotationType) |
static Object |
getBean(Class<?> beanClass) |
static Object |
getBean(String beanName) |
static org.springframework.beans.factory.BeanFactory |
getBeanFactory() |
static String[] |
getBeanNamesForAnnotation(Class<? extends Annotation> annotation) |
static <T> Map<String,T> |
getBeansOfType(Class<T> beanType) |
static Class<?> |
getBeanType(String beanName) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic static Map<String,Class<?>> getAnnotatedBeans(Class<? extends Annotation> annotationType)
public static org.springframework.beans.factory.BeanFactory getBeanFactory()
public static String[] getBeanNamesForAnnotation(Class<? extends Annotation> annotation)
Copyright © 2012–2020 ARECAP. All rights reserved.