public class ApplicationContextHolder extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.context.ApplicationListener<RemotingEvent>
| Constructor and Description |
|---|
ApplicationContextHolder() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getBean(Class<T> requiredType) |
static <T> Map<String,T> |
getBeansOfType(Class<T> requiredType) |
static Map<String,Object> |
getBeansWithAnnotation(Class<? extends Annotation> annotationType) |
static org.springframework.cache.CacheManager |
getCacheManager(String... name) |
static Map<String,org.springframework.cache.CacheManager> |
getCacheManagers() |
static LockManager |
getLockManager(String name) |
static Map<String,LockManager> |
getLockManagers() |
static ltd.fdsa.core.context.ApplicationContextHolder.ThreadContext |
getThreadContext() |
void |
onApplicationEvent(RemotingEvent event) |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
boolean |
postProcessAfterInstantiation(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInstantiation(Class<?> beanClass,
String beanName) |
org.springframework.beans.PropertyValues |
postProcessProperties(org.springframework.beans.PropertyValues pvs,
Object bean,
String beanName) |
static void |
publishLocal(org.springframework.context.ApplicationEvent event) |
static void |
publishRemote(org.springframework.context.ApplicationEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessBeforeInstantiation(Class<?> beanClass, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessororg.springframework.beans.BeansExceptionpublic boolean postProcessAfterInstantiation(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessororg.springframework.beans.BeansExceptionpublic org.springframework.beans.PropertyValues postProcessProperties(org.springframework.beans.PropertyValues pvs,
Object bean,
String beanName)
throws org.springframework.beans.BeansException
postProcessProperties in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessororg.springframework.beans.BeansExceptionpublic void onApplicationEvent(RemotingEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<RemotingEvent>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,org.springframework.cache.CacheManager> getCacheManagers()
public static org.springframework.cache.CacheManager getCacheManager(String... name)
public static Map<String,LockManager> getLockManagers()
public static LockManager getLockManager(String name)
public static ltd.fdsa.core.context.ApplicationContextHolder.ThreadContext getThreadContext()
public static <T> T getBean(Class<T> requiredType)
public static Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)
public static void publishRemote(org.springframework.context.ApplicationEvent event)
public static void publishLocal(org.springframework.context.ApplicationEvent event)
Copyright © 2022. All rights reserved.