Class BeanWiringInfo
java.lang.Object
org.springframework.beans.factory.wiring.BeanWiringInfo
Holder for bean wiring metadata information about a particular class. Used in
 conjunction with the 
Configurable
 annotation and the AspectJ AnnotationBeanConfigurerAspect.- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intConstant that indicates autowiring bean properties by name.static final intConstant that indicates autowiring bean properties by type.
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a default BeanWiringInfo that suggests plain initialization of factory and post-processor callbacks that the bean class may expect.BeanWiringInfo(int autowireMode, boolean dependencyCheck) Create a new BeanWiringInfo that indicates autowiring.BeanWiringInfo(String beanName) Create a new BeanWiringInfo that points to the given bean name.BeanWiringInfo(String beanName, boolean isDefaultBeanName) Create a new BeanWiringInfo that points to the given bean name.
- 
Method SummaryModifier and TypeMethodDescriptionintReturn one of the constantsAUTOWIRE_BY_NAME/AUTOWIRE_BY_TYPE, if autowiring is indicated.Return the specific bean name that this BeanWiringInfo points to, if any.booleanReturn whether to perform a dependency check for object references in the bean instance (after autowiring).booleanReturn whether this BeanWiringInfo indicates autowiring.booleanReturn whether the specific bean name is a suggested default bean name, not necessarily matching an actual bean definition in the factory.
- 
Field Details- 
AUTOWIRE_BY_NAMEpublic static final int AUTOWIRE_BY_NAMEConstant that indicates autowiring bean properties by name.- See Also:
 
- 
AUTOWIRE_BY_TYPEpublic static final int AUTOWIRE_BY_TYPEConstant that indicates autowiring bean properties by type.- See Also:
 
 
- 
- 
Constructor Details- 
BeanWiringInfopublic BeanWiringInfo()Create a default BeanWiringInfo that suggests plain initialization of factory and post-processor callbacks that the bean class may expect.
- 
BeanWiringInfoCreate a new BeanWiringInfo that points to the given bean name.- Parameters:
- beanName- the name of the bean definition to take the property values from
- Throws:
- IllegalArgumentException- if the supplied beanName is- null, is empty, or consists wholly of whitespace
 
- 
BeanWiringInfoCreate a new BeanWiringInfo that points to the given bean name.- Parameters:
- beanName- the name of the bean definition to take the property values from
- isDefaultBeanName- whether the given bean name is a suggested default bean name, not necessarily matching an actual bean definition
- Throws:
- IllegalArgumentException- if the supplied beanName is- null, is empty, or consists wholly of whitespace
 
- 
BeanWiringInfopublic BeanWiringInfo(int autowireMode, boolean dependencyCheck) Create a new BeanWiringInfo that indicates autowiring.- Parameters:
- autowireMode- one of the constants- AUTOWIRE_BY_NAME/- AUTOWIRE_BY_TYPE
- dependencyCheck- whether to perform a dependency check for object references in the bean instance (after autowiring)
- Throws:
- IllegalArgumentException- if the supplied- autowireModeis not one of the allowed values
- See Also:
 
 
- 
- 
Method Details- 
indicatesAutowiringpublic boolean indicatesAutowiring()Return whether this BeanWiringInfo indicates autowiring.
- 
getBeanName
- 
isDefaultBeanNamepublic boolean isDefaultBeanName()Return whether the specific bean name is a suggested default bean name, not necessarily matching an actual bean definition in the factory.
- 
getAutowireModepublic int getAutowireMode()Return one of the constantsAUTOWIRE_BY_NAME/AUTOWIRE_BY_TYPE, if autowiring is indicated.
- 
getDependencyCheckpublic boolean getDependencyCheck()Return whether to perform a dependency check for object references in the bean instance (after autowiring).
 
-