public class BeanWiringInfo
extends java.lang.Object
Configurable
annotation and the AspectJ AnnotationBeanConfigurerAspect
.BeanWiringInfoResolver
,
AutowireCapableBeanFactory
,
Configurable
Modifier and Type | Field and Description |
---|---|
static int |
AUTOWIRE_BY_NAME
Constant that indicates autowiring bean properties by name.
|
static int |
AUTOWIRE_BY_TYPE
Constant that indicates autowiring bean properties by type.
|
Constructor and Description |
---|
BeanWiringInfo()
Create 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(java.lang.String beanName)
Create a new BeanWiringInfo that points to the given bean name.
|
BeanWiringInfo(java.lang.String beanName,
boolean isDefaultBeanName)
Create a new BeanWiringInfo that points to the given bean name.
|
Modifier and Type | Method and Description |
---|---|
int |
getAutowireMode()
Return one of the constants
AUTOWIRE_BY_NAME /
AUTOWIRE_BY_TYPE , if autowiring is indicated. |
java.lang.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.
|
public static final int AUTOWIRE_BY_NAME
public static final int AUTOWIRE_BY_TYPE
public BeanWiringInfo()
public BeanWiringInfo(java.lang.String beanName)
beanName
- the name of the bean definition to take the property values fromjava.lang.IllegalArgumentException
- if the supplied beanName is null
,
is empty, or consists wholly of whitespacepublic BeanWiringInfo(java.lang.String beanName, boolean isDefaultBeanName)
beanName
- the name of the bean definition to take the property values fromisDefaultBeanName
- whether the given bean name is a suggested
default bean name, not necessarily matching an actual bean definitionjava.lang.IllegalArgumentException
- if the supplied beanName is null
,
is empty, or consists wholly of whitespacepublic BeanWiringInfo(int autowireMode, boolean dependencyCheck)
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)java.lang.IllegalArgumentException
- if the supplied autowireMode
is not one of the allowed valuesAUTOWIRE_BY_NAME
,
AUTOWIRE_BY_TYPE
public boolean indicatesAutowiring()
@Nullable public java.lang.String getBeanName()
public boolean isDefaultBeanName()
public int getAutowireMode()
AUTOWIRE_BY_NAME
/
AUTOWIRE_BY_TYPE
, if autowiring is indicated.public boolean getDependencyCheck()