DubboConfigBinder implementationInterface Config Bean that annotated
some annotation.DubboConfigConfigurationRegistrarReferenceAnnotationBeanPostProcessorDubboConfigDefaultPropertyValueBeanPostProcessorNamePropertyDefaultValueDubboConfigBeanCustomizerDubboApplicationListenerRegistrarDubboBootstrapApplicationListenerDubboLifecycleComponentApplicationListenerCsource for BeanMetadataElementDubboService
and DubboReference from the specified.Dubbo Config BeanDubboConfigBinder implementation based on Spring DataBinderApplicationListeners RegistrarApplicationListener for DubboBootstrap's lifecycle when the ContextRefreshedEvent
and ContextClosedEvent raisedApplicationEvent after DubboBootstrap.start() successApplicationEvent after DubboBootstrap.stop() successClassPathBeanDefinitionScanner that exposes some methods to be public.Annotation,scans the classpath for annotated components that will be auto-registered as
Spring beans.DubboComponentScan Bean RegistrarAbstractConfig.getId()Dubbo Config.DubboConfig BinderConfig ConfigurationConfig Bean BindingConfig Bean BindingConfig register, which order can be configuredBeanPostProcessor class for the default property value of Dubbo's Config BeansDubbo Config Bean will be added into ConfigManager on the bean initialization
life cycle through CommonAnnotationBeanPostProcessor executing the callback of
@PostConstruct.listener for the Dubbo Lifecycle componentsLifecycle components will be registered automatically. Current class may be
removed in the futureDubboComponentScan and EnableDubboConfig combination.EnableConfigurationBeanBinding
in default behavior , is equal to single bean bindings with below convention prefixes of properties:
ApplicationConfig binding to property : "dubbo.application"
ModuleConfig binding to property : "dubbo.module"
RegistryConfig binding to property : "dubbo.registry"
ProtocolConfig binding to property : "dubbo.protocol"
MonitorConfig binding to property : "dubbo.monitor"
ProviderConfig binding to property : "dubbo.provider"
ConsumerConfig binding to property : "dubbo.consumer"
In contrast, on multiple bean bindings that requires to set EnableDubboConfig.multiple() to be true :
ApplicationConfig binding to property : "dubbo.applications"
ModuleConfig binding to property : "dubbo.modules"
RegistryConfig binding to property : "dubbo.registries"
ProtocolConfig binding to property : "dubbo.protocols"
MonitorConfig binding to property : "dubbo.monitors"
ProviderConfig binding to property : "dubbo.providers"
ConsumerConfig binding to property : "dubbo.consumers"
Lifecycle components will be registered automatically. Current annotation may be
removed in the futureServiceBeanDubboBootstrap instanceDubboBootstrap instanceReferenceBean Map in injected field.ReferenceBean Map in injected method.ReferenceBeanServiceServiceBean instanceNamespaceHandlerSupport.parse(Element, ParserContext) methodBeanPostProcessor implementation
that Consumer service Reference annotated fields@com.alibaba.dubbo.config.annotation.Reference has been supported since 2.7.3
@DubboReference has been supported since 2.7.7AnnotationAttributesServiceClassPostProcessor as the substitute@Service Bean BuilderBeanFactoryPostProcessor used for processing of @Service annotated classes. it's also the
infrastructure class of XML BeanDefinitionParser on <dubbo:annotation />BeanMetadataElementCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.