org.springframework.beans.factory.config

Class BeanDefinitionVisitor

  • java.lang.Object
    • org.springframework.beans.factory.config.BeanDefinitionVisitor
    • Constructor Detail

      • BeanDefinitionVisitor

        public BeanDefinitionVisitor(StringValueResolver valueResolver)
        Create a new BeanDefinitionVisitor, applying the specified value resolver to all bean metadata values.
        Parameters:
        valueResolver - the StringValueResolver to apply
      • BeanDefinitionVisitor

        protected BeanDefinitionVisitor()
        Create a new BeanDefinitionVisitor for subclassing. Subclasses need to override the resolveStringValue(java.lang.String) method.
    • Method Detail

      • visitBeanDefinition

        public void visitBeanDefinition(BeanDefinition beanDefinition)
        Traverse the given BeanDefinition object and the MutablePropertyValues and ConstructorArgumentValues contained in them.
        Parameters:
        beanDefinition - the BeanDefinition object to traverse
        See Also:
        resolveStringValue(String)
      • visitParentName

        protected void visitParentName(BeanDefinition beanDefinition)
      • visitBeanClassName

        protected void visitBeanClassName(BeanDefinition beanDefinition)
      • visitFactoryBeanName

        protected void visitFactoryBeanName(BeanDefinition beanDefinition)
      • visitFactoryMethodName

        protected void visitFactoryMethodName(BeanDefinition beanDefinition)
      • visitScope

        protected void visitScope(BeanDefinition beanDefinition)
      • resolveValue

        @Nullable
        protected java.lang.Object resolveValue(@Nullable
                                                          java.lang.Object value)
      • visitArray

        protected void visitArray(java.lang.Object[] arrayVal)
      • visitList

        protected void visitList(java.util.List listVal)
      • visitSet

        protected void visitSet(java.util.Set setVal)
      • visitMap

        protected void visitMap(java.util.Map<?,?> mapVal)
      • resolveStringValue

        @Nullable
        protected java.lang.String resolveStringValue(java.lang.String strVal)
        Resolve the given String value, for example parsing placeholders.
        Parameters:
        strVal - the original String value
        Returns:
        the resolved String value