public class AnnotationNacosInjectedBeanPostProcessor
extends com.alibaba.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor<com.alibaba.nacos.api.annotation.NacosInjected>
implements org.springframework.beans.factory.InitializingBean
AnnotationInjectedBeanPostProcessor implementation is used to inject
ConfigService or NamingService instance into a Spring Bean If it's
attributes or properties annotated @NacosInjected.| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_NAME
The name of
AnnotationNacosInjectedBeanPostProcessor |
| Constructor and Description |
|---|
AnnotationNacosInjectedBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected String |
buildInjectedObjectCacheKey(com.alibaba.nacos.api.annotation.NacosInjected annotation,
Object bean,
String beanName,
Class<?> injectedType,
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) |
protected Object |
doGetInjectedBean(com.alibaba.nacos.api.annotation.NacosInjected annotation,
Object bean,
String beanName,
Class<?> injectedType,
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) |
destroy, getAnnotationType, getBeanFactory, getClassLoader, getEnvironment, getInjectedFieldObjectsMap, getInjectedMethodObjectsMap, getInjectedObject, getInjectedObjects, getOrder, postProcessMergedBeanDefinition, postProcessPropertyValues, setBeanClassLoader, setBeanFactory, setEnvironment, setOrderdetermineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanTypepublic static final String BEAN_NAME
AnnotationNacosInjectedBeanPostProcessorpublic AnnotationNacosInjectedBeanPostProcessor()
public final void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanprotected Object doGetInjectedBean(com.alibaba.nacos.api.annotation.NacosInjected annotation, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
doGetInjectedBean in class com.alibaba.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor<com.alibaba.nacos.api.annotation.NacosInjected>protected String buildInjectedObjectCacheKey(com.alibaba.nacos.api.annotation.NacosInjected annotation, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
buildInjectedObjectCacheKey in class com.alibaba.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor<com.alibaba.nacos.api.annotation.NacosInjected>Copyright © 2020. All rights reserved.