Class AbstractInjectionPointDependencyResolver

java.lang.Object
io.microsphere.spring.beans.factory.AbstractInjectionPointDependencyResolver
All Implemented Interfaces:
InjectionPointDependencyResolver, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware
Direct Known Subclasses:
AnnotatedInjectionPointDependencyResolver, BeanMethodInjectionPointDependencyResolver, ConstructionInjectionPointDependencyResolver

public abstract class AbstractInjectionPointDependencyResolver extends Object implements InjectionPointDependencyResolver, org.springframework.beans.factory.BeanFactoryAware
Since:
1.0.0
Author:
Mercy
  • Constructor Details

    • AbstractInjectionPointDependencyResolver

      public AbstractInjectionPointDependencyResolver()
  • Method Details

    • resolve

      public void resolve(Field field, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames)
      Description copied from interface: InjectionPointDependencyResolver
      Resolve the bean names as the dependencies from the specified field
      Specified by:
      resolve in interface InjectionPointDependencyResolver
      Parameters:
      field - the field may be an injection point
      beanFactory - ConfigurableListableBeanFactory
      dependentBeanNames - the dependent bean names to be manipulated
    • resolve

      public void resolve(Method method, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames)
      Description copied from interface: InjectionPointDependencyResolver
      Resolve the bean names as the dependencies from the specified method
      Specified by:
      resolve in interface InjectionPointDependencyResolver
      Parameters:
      method - the method may be an injection point
      beanFactory - ConfigurableListableBeanFactory
      dependentBeanNames - the dependent bean names to be manipulated
    • resolve

      public void resolve(Constructor constructor, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames)
      Description copied from interface: InjectionPointDependencyResolver
      Resolve the bean names as the dependencies from the specified constructor
      Specified by:
      resolve in interface InjectionPointDependencyResolver
      Parameters:
      constructor - the constructor may be an injection point
      beanFactory - ConfigurableListableBeanFactory
      dependentBeanNames - the dependent bean names to be manipulated
    • resolve

      public void resolve(Parameter parameter, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames)
      Description copied from interface: InjectionPointDependencyResolver
      Resolve the bean names as the dependencies from the specified parameter
      Specified by:
      resolve in interface InjectionPointDependencyResolver
      Parameters:
      parameter - the specified parameter of a method or constructor was annotated by the annotation
      beanFactory - ConfigurableListableBeanFactory
      dependentBeanNames - the dependent bean names to be manipulated
    • resolveDependentBeanNameByName

      protected String resolveDependentBeanNameByName(Field field, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
    • resolveDependentBeanNameByName

      protected String resolveDependentBeanNameByName(Parameter parameter, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
    • resolveDependentBeanNameByName

      protected String resolveDependentBeanNameByName(org.springframework.beans.factory.config.DependencyDescriptor dependencyDescriptor, org.springframework.beans.factory.support.AutowireCandidateResolver autowireCandidateResolver)
    • resolveDependentBeanNamesByType

      protected void resolveDependentBeanNamesByType(Supplier<Type> typeSupplier, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames)
    • getAutowireCandidateResolver

      protected org.springframework.beans.factory.support.AutowireCandidateResolver getAutowireCandidateResolver(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
    • resolveDependentType

      protected Class<?> resolveDependentType(Type type)
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException