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
Abstract
InjectionPointDependencyResolver
- Since:
- 1.0.0
- Author:
- Mercy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.support.AutowireCandidateResolver
getAutowireCandidateResolver
(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) void
resolve
(Constructor constructor, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames) Resolve the bean names as the dependencies from the specifiedconstructor
void
resolve
(Field field, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames) Resolve the bean names as the dependencies from the specifiedfield
void
resolve
(Method method, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames) Resolve the bean names as the dependencies from the specifiedmethod
void
resolve
(Parameter parameter, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames) Resolve the bean names as the dependencies from the specifiedparameter
protected String
resolveDependentBeanNameByName
(Field field, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) protected String
resolveDependentBeanNameByName
(Parameter parameter, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) protected String
resolveDependentBeanNameByName
(org.springframework.beans.factory.config.DependencyDescriptor dependencyDescriptor, org.springframework.beans.factory.support.AutowireCandidateResolver autowireCandidateResolver) protected void
resolveDependentBeanNamesByType
(Supplier<Type> typeSupplier, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Set<String> dependentBeanNames) protected Class<?>
resolveDependentType
(Type type) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory)
-
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 specifiedfield
- Specified by:
resolve
in interfaceInjectionPointDependencyResolver
- Parameters:
field
- thefield
may be an injection pointbeanFactory
-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 specifiedmethod
- Specified by:
resolve
in interfaceInjectionPointDependencyResolver
- Parameters:
method
- themethod
may be an injection pointbeanFactory
-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 specifiedconstructor
- Specified by:
resolve
in interfaceInjectionPointDependencyResolver
- Parameters:
constructor
- theconstructor
may be an injection pointbeanFactory
-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 specifiedparameter
- Specified by:
resolve
in interfaceInjectionPointDependencyResolver
- Parameters:
parameter
- the specifiedparameter
of a method or constructor was annotated by the annotationbeanFactory
-ConfigurableListableBeanFactory
dependentBeanNames
- the dependent bean names to be manipulated
-
resolveDependentBeanNameByName
-
resolveDependentBeanNameByName
-
resolveDependentBeanNameByName
protected String resolveDependentBeanNameByName(org.springframework.beans.factory.config.DependencyDescriptor dependencyDescriptor, org.springframework.beans.factory.support.AutowireCandidateResolver autowireCandidateResolver) -
resolveDependentBeanNamesByType
-
getAutowireCandidateResolver
protected org.springframework.beans.factory.support.AutowireCandidateResolver getAutowireCandidateResolver(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) -
resolveDependentType
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-