public class FieldBeansCollector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldBeansCollector.FieldType |
Constructor and Description |
---|
FieldBeansCollector(org.springframework.core.ResolvableType fieldResolvableType) |
Modifier and Type | Method and Description |
---|---|
void |
addBean(String beanName,
Object bean)
Adds compatible bean to the field.
|
Object |
getBeansToInject()
Returns an instance containing all the beans collected for the field and
compatible with the type of the field.
|
FieldBeansCollector.FieldType |
getFieldType() |
public FieldBeansCollector(org.springframework.core.ResolvableType fieldResolvableType)
public Object getBeansToInject()
public void addBean(String beanName, Object bean)
beanName
- the name of the bean to injectbean
- the bean to injectpublic FieldBeansCollector.FieldType getFieldType()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.