| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.springframework.beans.factory.support.AbstractBeanDefinition | +--org.springframework.beans.factory.support.RootBeanDefinition
Root bean definitions have a class plus optionally constructor argument values and property values. This is the most common type of bean definition.
The autowire constants match the ones defined in the AutowireCapableBeanFactory interface, adding AUTOWIRE_NO.
Field Summary | |
final static int | AUTOWIRE_AUTODETECT |
final static int | AUTOWIRE_BY_NAME |
final static int | AUTOWIRE_BY_TYPE |
final static int | AUTOWIRE_CONSTRUCTOR |
final static int | AUTOWIRE_NO |
final static int | DEPENDENCY_CHECK_ALL |
final static int | DEPENDENCY_CHECK_NONE |
final static int | DEPENDENCY_CHECK_OBJECTS |
final static int | DEPENDENCY_CHECK_SIMPLE |
Constructor Summary | |
RootBeanDefinition(Class beanClass, int autowireMode) Create a new RootBeanDefinition for a singleton, using the given autowire mode. | |
RootBeanDefinition(Class beanClass, int autowireMode, boolean dependencyCheck) Create a new RootBeanDefinition for a singleton, using the given autowire mode. | |
RootBeanDefinition(Class beanClass, MutablePropertyValues pvs) Create a new RootBeanDefinition for a singleton, providing property values. | |
RootBeanDefinition(Class beanClass, MutablePropertyValues pvs, boolean singleton) Create a new RootBeanDefinition with the given singleton status, providing property values. | |
RootBeanDefinition(Class beanClass, ConstructorArgumentValues cargs, MutablePropertyValues pvs) Create a new RootBeanDefinition for a singleton, providing constructor arguments and property values. | |
RootBeanDefinition(String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) Create a new RootBeanDefinition for a singleton, providing constructor arguments and property values. | |
RootBeanDefinition(RootBeanDefinition other) Deep copy constructor. |
Method Summary | |
int | getAutowireMode() Return the autowire mode as specified in the bean definition. |
final Class | getBeanClass() Returns the class of the wrapped bean. |
final String | getBeanClassName() Returns the class name of the wrapped bean. |
ConstructorArgumentValues | getConstructorArgumentValues() Return the constructor argument values for this bean. |
int | getDependencyCheck() Return the dependency check code. |
String[] | getDependsOn() Return the bean names that this bean depends on. |
String | getDestroyMethodName() Return the name of the destroy method. |
String | getInitMethodName() Return the name of the initializer method. |
int | getResolvedAutowireMode() Return the resolved autowire code, (resolving AUTOWIRE_AUTODETECT to AUTOWIRE_CONSTRUCTOR or AUTOWIRE_BY_TYPE). |
boolean | hasConstructorArgumentValues() Return if there are constructor argument values for this bean. |
void | setAutowireMode(int autowireMode) Set the autowire code. |
void | setDependencyCheck(int dependencyCheck) Set the dependency check code. |
void | setDependsOn(String[] dependsOn) Set the names of the beans that this bean depends on being initialized. |
void | setDestroyMethodName(String destroyMethodName) Set the name of the destroy method. |
void | setInitMethodName(String initMethodName) Set the name of the initializer method. |
String | toString() |
void | validate() |
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition |
getPropertyValues, getResourceDescription, isLazyInit, isSingleton, setLazyInit, setResourceDescription, setSingleton |
Field Detail |
public final static int AUTOWIRE_AUTODETECT
public final static int AUTOWIRE_BY_NAME
public final static int AUTOWIRE_BY_TYPE
public final static int AUTOWIRE_CONSTRUCTOR
public final static int AUTOWIRE_NO
public final static int DEPENDENCY_CHECK_ALL
public final static int DEPENDENCY_CHECK_NONE
public final static int DEPENDENCY_CHECK_OBJECTS
public final static int DEPENDENCY_CHECK_SIMPLE
Constructor Detail |
public RootBeanDefinition(Class beanClass, int autowireMode)
public RootBeanDefinition(Class beanClass, int autowireMode, boolean dependencyCheck)
public RootBeanDefinition(Class beanClass, MutablePropertyValues pvs)
public RootBeanDefinition(Class beanClass, MutablePropertyValues pvs, boolean singleton)
public RootBeanDefinition(Class beanClass, ConstructorArgumentValues cargs, MutablePropertyValues pvs)
public RootBeanDefinition(String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs)
public RootBeanDefinition(RootBeanDefinition other)
Method Detail |
public int getAutowireMode()
public final Class getBeanClass()
throws java.lang.IllegalStateException
public final String getBeanClassName()
public ConstructorArgumentValues getConstructorArgumentValues()
public int getDependencyCheck()
public String[] getDependsOn()
public String getDestroyMethodName()
public String getInitMethodName()
public int getResolvedAutowireMode()
public boolean hasConstructorArgumentValues()
public void setAutowireMode(int autowireMode)
public void setDependencyCheck(int dependencyCheck)
public void setDependsOn(String[] dependsOn)
Note that dependencies are normally expressed through bean properties or constructor arguments. This property should just be necessary for other kinds of dependencies like statics (*ugh*) or database preparation on startup.
public void setDestroyMethodName(String destroyMethodName)
public void setInitMethodName(String initMethodName)
public String toString()
public void validate()
throws BeanDefinitionValidationException
Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |