|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.wiring.BeanWiringInfo
public class BeanWiringInfo
Class holding wiring metadata information about a bean definition.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
int |
getAutowireMode()
Return the constant AUTOWIRE_BY_NAME or 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AUTOWIRE_BY_NAME
BeanWiringInfo(int, boolean)
,
Constant Field Valuespublic static final int AUTOWIRE_BY_TYPE
BeanWiringInfo(int, boolean)
,
Constant Field ValuesConstructor Detail |
---|
public BeanWiringInfo(String beanName)
beanName
- the name of the bean definition to take the property values from
IllegalArgumentException
- if the supplied beanName is null
, is empty, or consists wholly of whitespacepublic BeanWiringInfo(int autowireMode, boolean dependencyCheck)
autowireMode
- either constant AUTOWIRE_BY_NAME or AUTOWIRE_BY_TYPEdependencyCheck
- whether to perform a dependency check for object
references in the bean instance (after autowiring)
IllegalArgumentException
- if the supplied autowireMode is not one of the allowed valuesAutowireCapableBeanFactory.AUTOWIRE_BY_NAME
,
AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE
Method Detail |
---|
public boolean indicatesAutowiring()
public String getBeanName()
public int getAutowireMode()
public boolean getDependencyCheck()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |