Class ResourceInjectionPointDependencyResolver
- java.lang.Object
-
- io.microsphere.spring.beans.factory.AbstractInjectionPointDependencyResolver
-
- io.microsphere.spring.beans.factory.annotation.AnnotatedInjectionPointDependencyResolver<javax.annotation.Resource>
-
- io.microsphere.spring.beans.factory.annotation.ResourceInjectionPointDependencyResolver
-
- All Implemented Interfaces:
InjectionPointDependencyResolver
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
public class ResourceInjectionPointDependencyResolver extends AnnotatedInjectionPointDependencyResolver<javax.annotation.Resource>
AnnotatedInjectionPointDependencyResolver
forResource
- Since:
- 1.0.0
- Author:
- Mercy
-
-
Constructor Summary
Constructors Constructor Description ResourceInjectionPointDependencyResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.annotation.Resource
getAnnotation(java.lang.reflect.Parameter parameter)
Get the injection annotation from the annotated elementvoid
resolve(java.lang.reflect.Field field, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, java.util.Set<java.lang.String> dependentBeanNames)
Resolve the bean names as the dependencies from the specifiedfield
void
resolve(java.lang.reflect.Parameter parameter, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, java.util.Set<java.lang.String> dependentBeanNames)
Resolve the bean names as the dependencies from the specifiedparameter
-
Methods inherited from class io.microsphere.spring.beans.factory.annotation.AnnotatedInjectionPointDependencyResolver
getAnnotation, getAnnotation, getAnnotationType
-
Methods inherited from class io.microsphere.spring.beans.factory.AbstractInjectionPointDependencyResolver
getAutowireCandidateResolver, resolve, resolve, resolveDependentBeanNameByName, resolveDependentBeanNameByName, resolveDependentBeanNameByName, resolveDependentBeanNamesByType, resolveDependentType, setBeanFactory
-
-
-
-
Method Detail
-
getAnnotation
public javax.annotation.Resource getAnnotation(java.lang.reflect.Parameter parameter)
Description copied from class:AnnotatedInjectionPointDependencyResolver
Get the injection annotation from the annotated element- Overrides:
getAnnotation
in classAnnotatedInjectionPointDependencyResolver<javax.annotation.Resource>
- Parameters:
parameter
-Parameter
- Returns:
- the injection annotation if found
-
resolve
public void resolve(java.lang.reflect.Field field, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, java.util.Set<java.lang.String> dependentBeanNames)
Description copied from interface:InjectionPointDependencyResolver
Resolve the bean names as the dependencies from the specifiedfield
- Specified by:
resolve
in interfaceInjectionPointDependencyResolver
- Overrides:
resolve
in classAbstractInjectionPointDependencyResolver
- Parameters:
field
- thefield
may be an injection pointbeanFactory
-ConfigurableListableBeanFactory
dependentBeanNames
- the dependent bean names to be manipulated
-
resolve
public void resolve(java.lang.reflect.Parameter parameter, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, java.util.Set<java.lang.String> dependentBeanNames)
Description copied from interface:InjectionPointDependencyResolver
Resolve the bean names as the dependencies from the specifiedparameter
- Specified by:
resolve
in interfaceInjectionPointDependencyResolver
- Overrides:
resolve
in classAbstractInjectionPointDependencyResolver
- Parameters:
parameter
- the specifiedparameter
of a method or constructor was annotated by the annotationbeanFactory
-ConfigurableListableBeanFactory
dependentBeanNames
- the dependent bean names to be manipulated
-
-