public class

BeanWiringInfo

extends Object
java.lang.Object
   ↳ org.springframework.beans.factory.wiring.BeanWiringInfo

Class Overview

Holder for bean wiring metadata information about a particular class. Used in conjunction with the Configurable annotation and the AspectJ AnnotationBeanConfigurerAspect.

Summary

Constants
int AUTOWIRE_BY_NAME Constant that indicates autowiring bean properties by name.
int AUTOWIRE_BY_TYPE Constant that indicates autowiring bean properties by type.
Public Constructors
BeanWiringInfo()
Create a default BeanWiringInfo that suggests plain initialization of factory and post-processor callbacks that the bean class may expect.
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.
BeanWiringInfo(int autowireMode, boolean dependencyCheck)
Create a new BeanWiringInfo that indicates autowiring.
Public Methods
int getAutowireMode()
Return one of the constants AUTOWIRE_BY_NAME / AUTOWIRE_BY_TYPE, if autowiring is indicated.
String getBeanName()
Return the specific bean name that this BeanWiringInfo points to, if any.
boolean getDependencyCheck()
Return whether to perform a dependency check for object references in the bean instance (after autowiring).
boolean indicatesAutowiring()
Return whether this BeanWiringInfo indicates autowiring.
boolean isDefaultBeanName()
Return whether the specific bean name is a suggested default bean name, not necessarily matching an actual bean definition in the factory.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int AUTOWIRE_BY_NAME

Also: SpringBeans

Constant that indicates autowiring bean properties by name.

Constant Value: 1 (0x00000001)

public static final int AUTOWIRE_BY_TYPE

Also: SpringBeans

Constant that indicates autowiring bean properties by type.

Constant Value: 2 (0x00000002)

Public Constructors

public BeanWiringInfo ()

Also: SpringBeans

Create a default BeanWiringInfo that suggests plain initialization of factory and post-processor callbacks that the bean class may expect.

public BeanWiringInfo (String beanName)

Also: SpringBeans

Create 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

public BeanWiringInfo (String beanName, boolean isDefaultBeanName)

Also: SpringBeans

Create 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

public BeanWiringInfo (int autowireMode, boolean dependencyCheck)

Also: SpringBeans

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 autowireMode is not one of the allowed values

Public Methods

public int getAutowireMode ()

Also: SpringBeans

Return one of the constants AUTOWIRE_BY_NAME / AUTOWIRE_BY_TYPE, if autowiring is indicated.

public String getBeanName ()

Also: SpringBeans

Return the specific bean name that this BeanWiringInfo points to, if any.

public boolean getDependencyCheck ()

Also: SpringBeans

Return whether to perform a dependency check for object references in the bean instance (after autowiring).

public boolean indicatesAutowiring ()

Also: SpringBeans

Return whether this BeanWiringInfo indicates autowiring.

public boolean isDefaultBeanName ()

Also: SpringBeans

Return whether the specific bean name is a suggested default bean name, not necessarily matching an actual bean definition in the factory.