public class AnnotationNacosInjectedBeanPostProcessor extends AbstractAnnotationBeanPostProcessor implements org.springframework.beans.factory.InitializingBean
AnnotationNacosInjectedBeanPostProcessor implementation is used to inject ConfigService or
NamingService instance into a Spring Bean If it's attributes or properties annotated
@NacosInjected.AbstractAnnotationBeanPostProcessor.AnnotatedFieldElement| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BEAN_NAME |
private Map<Class<?>,AbstractNacosServiceBeanBuilder> |
nacosServiceBeanBuilderMap |
| 构造器和说明 |
|---|
AnnotationNacosInjectedBeanPostProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
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) |
private void |
initNacosServiceBeanBuilderMap(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
destroy, doGetAnnotationAttributes, getAnnotationType, getAnnotationTypes, getBeanFactory, getClassLoader, getEnvironment, getInjectedFieldObjectsMap, getInjectedMethodObjectsMap, getInjectedObject, getInjectedObjects, getOrder, postProcessMergedBeanDefinition, postProcessPropertyValues, setBeanClassLoader, setBeanFactory, setClassValuesAsString, setEnvironment, setIgnoreDefaultValue, setNestedAnnotationsAsMap, setOrder, setTryMergedAnnotationdetermineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessProperties, predictBeanTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate Map<Class<?>,AbstractNacosServiceBeanBuilder> nacosServiceBeanBuilderMap
public final void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanprivate void initNacosServiceBeanBuilderMap(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
protected Object doGetInjectedBean(org.springframework.core.annotation.AnnotationAttributes attributes, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) throws Exception
Copyright © 2021 Zodiac. All rights reserved.