public class NacosValueAnnotationBeanPostProcessor extends com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.EnvironmentAware, org.springframework.context.ApplicationListener<NacosConfigReceivedEvent>
NacosValue
BeanPostProcessor implementation.NacosValue| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BEAN_NAME
The name of
NacosValueAnnotationBeanPostProcessor bean. |
| 构造器和说明 |
|---|
NacosValueAnnotationBeanPostProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
buildInjectedObjectCacheKey(org.springframework.core.annotation.AnnotationAttributes attributes,
Object bean,
String beanName,
Class<?> injectedType,
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) |
protected Object |
doGetInjectedBean(org.springframework.core.annotation.AnnotationAttributes attributes,
Object bean,
String beanName,
Class<?> injectedType,
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) |
void |
onApplicationEvent(NacosConfigReceivedEvent event) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
destroy, doGetAnnotationAttributes, getAnnotationType, getAnnotationTypes, getBeanFactory, getClassLoader, getEnvironment, getInjectedFieldObjectsMap, getInjectedMethodObjectsMap, getInjectedObject, getInjectedObjects, getOrder, postProcessMergedBeanDefinition, postProcessPropertyValues, setBeanClassLoader, setClassValuesAsString, setIgnoreDefaultValue, setNestedAnnotationsAsMap, setOrder, setTryMergedAnnotationdetermineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInstantiation, predictBeanTypepublic static final String BEAN_NAME
NacosValueAnnotationBeanPostProcessor bean.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAwaresetBeanFactory 在类中 com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessororg.springframework.beans.BeansExceptionpublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment 在接口中 org.springframework.context.EnvironmentAwaresetEnvironment 在类中 com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessorprotected Object doGetInjectedBean(org.springframework.core.annotation.AnnotationAttributes attributes, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) throws Exception
doGetInjectedBean 在类中 com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessorExceptionprotected String buildInjectedObjectCacheKey(org.springframework.core.annotation.AnnotationAttributes attributes, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
buildInjectedObjectCacheKey 在类中 com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessorpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessorpostProcessBeforeInitialization 在类中 org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapterorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(NacosConfigReceivedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<NacosConfigReceivedEvent>Copyright © 2021. All rights reserved.