Interface DubboBeanUtils
public interface DubboBeanUtils
Dubbo Bean utilities class
- Since:
- 2.7.6
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic booleancheckBeanExists(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Class<?> targetClass) static org.apache.dubbo.rpc.model.ApplicationModelgetApplicationModel(org.springframework.beans.factory.BeanFactory beanFactory) static org.apache.dubbo.config.context.ConfigManagergetConfigManager(org.springframework.beans.factory.BeanFactory beanFactory) static DubboSpringInitContextgetInitializationContext(org.springframework.beans.factory.BeanFactory beanFactory) static org.apache.dubbo.rpc.model.ModuleModelgetModuleModel(org.springframework.beans.factory.BeanFactory beanFactory) getReferenceAnnotationBeanPostProcessor(org.springframework.beans.factory.support.AbstractBeanFactory beanFactory) getReferenceAnnotationBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext) static booleanregisterBeanDefinition(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, String beanName, Class<?> beanClass, Map<String, Object> extraPropertyValues) static voidregisterCommonBeans(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Register the common beansstatic booleanregisterInfrastructureBean(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry, String beanName, Class<?> beanType) Register Infrastructure Beanstatic voidregisterPlaceholderConfigurerBeanIfNotExists(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Register a placeholder configurer beans if not exists.
-
Field Details
-
log
static final org.apache.commons.logging.Log log
-
-
Method Details
-
registerCommonBeans
static void registerCommonBeans(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Register the common beans- Parameters:
registry-BeanDefinitionRegistry- See Also:
-
registerInfrastructureBean
static boolean registerInfrastructureBean(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry, String beanName, Class<?> beanType) Register Infrastructure Bean- Parameters:
beanDefinitionRegistry-BeanDefinitionRegistrybeanName- the name of beanbeanType- the type of bean- Returns:
- if it's a first time to register, return
true, orfalse
-
registerPlaceholderConfigurerBeanIfNotExists
static void registerPlaceholderConfigurerBeanIfNotExists(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Register a placeholder configurer beans if not exists. Call this method in BeanDefinitionRegistryPostProcessor, in order to enable the registered BeanFactoryPostProcessor bean to be loaded and executed.- Parameters:
beanFactory-registry-- See Also:
-
registerBeanDefinition
-
checkBeanExists
static boolean checkBeanExists(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Class<?> targetClass) -
getReferenceAnnotationBeanPostProcessor
static ReferenceAnnotationBeanPostProcessor getReferenceAnnotationBeanPostProcessor(org.springframework.beans.factory.support.AbstractBeanFactory beanFactory) -
getReferenceAnnotationBeanPostProcessor
static ReferenceAnnotationBeanPostProcessor getReferenceAnnotationBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext) -
getInitializationContext
static DubboSpringInitContext getInitializationContext(org.springframework.beans.factory.BeanFactory beanFactory) -
getApplicationModel
static org.apache.dubbo.rpc.model.ApplicationModel getApplicationModel(org.springframework.beans.factory.BeanFactory beanFactory) -
getModuleModel
static org.apache.dubbo.rpc.model.ModuleModel getModuleModel(org.springframework.beans.factory.BeanFactory beanFactory) -
getConfigManager
static org.apache.dubbo.config.context.ConfigManager getConfigManager(org.springframework.beans.factory.BeanFactory beanFactory)
-