|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.factory.support.SimpleAutowireCandidateResolver
public class SimpleAutowireCandidateResolver
AutowireCandidateResolver
implementation to use when no annotation
support is available. This implementation checks the bean definition only.
BeanDefinition.isAutowireCandidate()
Constructor Summary | |
---|---|
SimpleAutowireCandidateResolver()
|
Method Summary | |
---|---|
java.lang.Object |
getSuggestedValue(DependencyDescriptor descriptor)
Determine whether a default value is suggested for the given dependency. |
boolean |
isAutowireCandidate(BeanDefinitionHolder bdHolder,
DependencyDescriptor descriptor)
Determine if the provided bean definition is an autowire candidate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleAutowireCandidateResolver()
Method Detail |
---|
public boolean isAutowireCandidate(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor)
To be considered a candidate the bean's autowire-candidate attribute must not have been set to 'false'.
isAutowireCandidate
in interface AutowireCandidateResolver
bdHolder
- the bean definition including bean name and aliasesdescriptor
- the descriptor for the target method parameter or field
public java.lang.Object getSuggestedValue(DependencyDescriptor descriptor)
AutowireCandidateResolver
getSuggestedValue
in interface AutowireCandidateResolver
descriptor
- the descriptor for the target method parameter or field
null
if none found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |