接口 DubboBeanUtils


  • public interface DubboBeanUtils
    Dubbo Bean utilities class
    从以下版本开始:
    2.7.6
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static org.apache.commons.logging.Log log  
    • 方法概要

      静态方法 
      修饰符和类型 方法 说明
      static boolean checkBeanExists​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Class<?> beanClass)  
      static boolean registerBeanDefinitionIfNotExists​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, String beanName, Class<?> beanClass, Map<String,​Object> extraPropertyValues)  
      static void registerBeansIfNotExists​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Register some beans later Call this method in BeanDefinitionRegistryPostProcessor, in order to enable the registered BeanFactoryPostProcessor bean to be loaded and executed.
      static void registerCommonBeans​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Register the common beans
      static boolean registerInfrastructureBean​(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry, String beanName, Class<?> beanType)
      Register Infrastructure Bean
    • 字段详细资料

      • log

        static final org.apache.commons.logging.Log log
    • 方法详细资料

      • registerInfrastructureBean

        static boolean registerInfrastructureBean​(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry,
                                                  String beanName,
                                                  Class<?> beanType)
        Register Infrastructure Bean
        参数:
        beanDefinitionRegistry - BeanDefinitionRegistry
        beanType - the type of bean
        beanName - the name of bean
        返回:
        if it's a first time to register, return true, or false
      • registerBeansIfNotExists

        static void registerBeansIfNotExists​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
        Register some beans later Call this method in BeanDefinitionRegistryPostProcessor, in order to enable the registered BeanFactoryPostProcessor bean to be loaded and executed.
        参数:
        registry -
        另请参阅:
        DubboInfraBeanRegisterPostProcessor, PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.util.List)
      • registerBeanDefinitionIfNotExists

        static boolean registerBeanDefinitionIfNotExists​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
                                                         String beanName,
                                                         Class<?> beanClass,
                                                         Map<String,​Object> extraPropertyValues)
      • checkBeanExists

        static boolean checkBeanExists​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
                                       Class<?> beanClass)