接口 BeanDefinitionRegistry

    • 方法详细资料

      • containsBeanDefinition

        boolean containsBeanDefinition​(String beanName)
        Check if this registry contains a bean definition with the given name.
        参数:
        beanName - the name of the bean to look for
        返回:
        if this registry contains a bean definition with the given name
      • getBeanDefinitionNames

        String[] getBeanDefinitionNames()
        Return the names of all beans defined in this registry.
        返回:
        the names of all beans defined in this registry, or an empty array if none defined
      • getBeanDefinitionCount

        int getBeanDefinitionCount()
        Return the number of beans defined in the registry.
        返回:
        the number of beans defined in the registry
      • isBeanNameInUse

        boolean isBeanNameInUse​(String beanName)
        Determine whether the given bean name is already in use within this registry, i.e. whether there is a local bean or alias registered under this name.
        参数:
        beanName - the name to check
        返回:
        whether the given bean name is already in use