org.springframework.beans.factory.annotation

Class AnnotationBeanWiringInfoResolver

  • java.lang.Object
    • org.springframework.beans.factory.annotation.AnnotationBeanWiringInfoResolver
    • Constructor Detail

      • AnnotationBeanWiringInfoResolver

        public AnnotationBeanWiringInfoResolver()
    • Method Detail

      • buildWiringInfo

        protected BeanWiringInfo buildWiringInfo(java.lang.Object beanInstance,
                                                 Configurable annotation)
        Build the BeanWiringInfo for the given Configurable annotation.
        Parameters:
        beanInstance - the bean instance
        annotation - the Configurable annotation found on the bean class
        Returns:
        the resolved BeanWiringInfo
      • getDefaultBeanName

        protected java.lang.String getDefaultBeanName(java.lang.Object beanInstance)
        Determine the default bean name for the specified bean instance.

        The default implementation returns the superclass name for a CGLIB proxy and the name of the plain bean class else.

        Parameters:
        beanInstance - the bean instance to build a default name for
        Returns:
        the default bean name to use
        See Also:
        ClassUtils.getUserClass(Class)