Interface DubboBeanUtils


public interface DubboBeanUtils
Dubbo Bean utilities class
Since:
2.7.6
  • 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 - BeanDefinitionRegistry
      beanName - the name of bean
      beanType - the type of bean
      Returns:
      if it's a first time to register, return true, or false
    • 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:
      • DubboInfraBeanRegisterPostProcessor
      • PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.util.List)
    • registerBeanDefinition

      static boolean registerBeanDefinition(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, String beanName, Class<?> beanClass, Map<String,Object> extraPropertyValues)
    • 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)