public abstract class

AbstractBeanDefinition

extends BeanMetadataAttributeAccessor
implements Cloneable BeanDefinition
java.lang.Object
   ↳ org.springframework.core.AttributeAccessorSupport
     ↳ org.springframework.beans.BeanMetadataAttributeAccessor
       ↳ org.springframework.beans.factory.support.AbstractBeanDefinition
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base class for concrete, full-fledged BeanDefinition classes, factoring out common properties of RootBeanDefinition and ChildBeanDefinition.

The autowire constants match the ones defined in the AutowireCapableBeanFactory interface.

Summary

Constants
int AUTOWIRE_AUTODETECT This constant is deprecated. as of Spring 3.0: If you are using mixed autowiring strategies, use annotation-based autowiring for clearer demarcation of autowiring needs.
int AUTOWIRE_BY_NAME Constant that indicates autowiring bean properties by name.
int AUTOWIRE_BY_TYPE Constant that indicates autowiring bean properties by type.
int AUTOWIRE_CONSTRUCTOR Constant that indicates autowiring a constructor.
int AUTOWIRE_NO Constant that indicates no autowiring at all.
int DEPENDENCY_CHECK_ALL Constant that indicates dependency checking for all properties (object references as well as "simple" properties).
int DEPENDENCY_CHECK_NONE Constant that indicates no dependency check at all.
int DEPENDENCY_CHECK_OBJECTS Constant that indicates dependency checking for object references.
int DEPENDENCY_CHECK_SIMPLE Constant that indicates dependency checking for "simple" properties.
String SCOPE_DEFAULT Constant for the default scope name: "", equivalent to singleton status but to be overridden from a parent bean definition (if applicable).
[Expand]
Inherited Constants
From interface org.springframework.beans.factory.config.BeanDefinition
Protected Constructors
AbstractBeanDefinition()
Create a new AbstractBeanDefinition with default settings.
AbstractBeanDefinition(ConstructorArgumentValues cargs, MutablePropertyValues pvs)
Create a new AbstractBeanDefinition with the given constructor argument values and property values.
AbstractBeanDefinition(AbstractBeanDefinition original)
This constructor is deprecated. since Spring 2.5, in favor of AbstractBeanDefinition(BeanDefinition)
AbstractBeanDefinition(BeanDefinition original)
Create a new AbstractBeanDefinition as deep copy of the given bean definition.
Public Methods
void addQualifier(AutowireCandidateQualifier qualifier)
Register a qualifier to be used for autowire candidate resolution, keyed by the qualifier's type name.
void applyDefaults(BeanDefinitionDefaults defaults)
Apply the provided default values to this bean.
Object clone()
Public declaration of Object's clone() method.
abstract AbstractBeanDefinition cloneBeanDefinition()
Clone this bean definition.
void copyQualifiersFrom(AbstractBeanDefinition source)
Copy the qualifiers from the supplied AbstractBeanDefinition to this bean definition.
boolean equals(Object other)
int getAutowireMode()
Return the autowire mode as specified in the bean definition.
Class<?> getBeanClass()
Return the class of the wrapped bean, if already resolved.
String getBeanClassName()
Return the current bean class name of this bean definition.
ConstructorArgumentValues getConstructorArgumentValues()
Return constructor argument values for this bean (never null).
int getDependencyCheck()
Return the dependency check code.
String[] getDependsOn()
Return the bean names that this bean depends on.
String getDescription()
Return a human-readable description of this bean definition.
String getDestroyMethodName()
Return the name of the destroy method.
String getFactoryBeanName()
Return the factory bean name, if any.
String getFactoryMethodName()
Return a factory method, if any.
String getInitMethodName()
Return the name of the initializer method.
MethodOverrides getMethodOverrides()
Return information about methods to be overridden by the IoC container.
BeanDefinition getOriginatingBeanDefinition()
Return the originating BeanDefinition, or null if none.
MutablePropertyValues getPropertyValues()
Return property values for this bean (never null).
AutowireCandidateQualifier getQualifier(String typeName)
Return the qualifier mapped to the provided type name.
Set<AutowireCandidateQualifier> getQualifiers()
Return all registered qualifiers.
int getResolvedAutowireMode()
Return the resolved autowire code, (resolving AUTOWIRE_AUTODETECT to AUTOWIRE_CONSTRUCTOR or AUTOWIRE_BY_TYPE).
Resource getResource()
Return the resource that this bean definition came from.
String getResourceDescription()
Return a description of the resource that this bean definition came from (for the purpose of showing context in case of errors).
int getRole()
Return the role hint for this BeanDefinition.
String getScope()
Return the name of the target scope for the bean.
boolean hasBeanClass()
Return whether this definition specifies a bean class.
boolean hasConstructorArgumentValues()
Return if there are constructor argument values defined for this bean.
boolean hasQualifier(String typeName)
Return whether this bean has the specified qualifier.
int hashCode()
boolean isAbstract()
Return whether this bean is "abstract", i.e.
boolean isAutowireCandidate()
Return whether this bean is a candidate for getting autowired into some other bean.
boolean isEnforceDestroyMethod()
Indicate whether the configured destroy method is the default.
boolean isEnforceInitMethod()
Indicate whether the configured init method is the default.
boolean isLazyInit()
Return whether this bean should be lazily initialized, i.e.
boolean isLenientConstructorResolution()
Return whether to resolve constructors in lenient mode or in strict mode.
boolean isNonPublicAccessAllowed()
Return whether to allow access to non-public constructors and methods.
boolean isPrimary()
Return whether this bean is a primary autowire candidate.
boolean isPrototype()
Return whether this a Prototype, with an independent instance returned for each call.
boolean isSingleton()
Return whether this a Singleton, with a single shared instance returned from all calls.
boolean isSynthetic()
Return whether this bean definition is 'synthetic', that is, not defined by the application itself.
void overrideFrom(AbstractBeanDefinition other)
This method is deprecated. since Spring 2.5, in favor of overrideFrom(BeanDefinition)
void overrideFrom(BeanDefinition other)
Override settings in this bean definition (assumably a copied parent from a parent-child inheritance relationship) from the given bean definition (assumably the child).
void prepareMethodOverrides()
Validate and prepare the method overrides defined for this bean.
Class resolveBeanClass(ClassLoader classLoader)
Determine the class of the wrapped bean, resolving it from a specified class name if necessary.
void setAbstract(boolean abstractFlag)
Set if this bean is "abstract", i.e.
void setAutowireCandidate(boolean autowireCandidate)
Set whether this bean is a candidate for getting autowired into some other bean.
void setAutowireMode(int autowireMode)
Set the autowire mode.
void setBeanClass(Class<?> beanClass)
Specify the class for this bean.
void setBeanClassName(String beanClassName)
Override the bean class name of this bean definition.
void setConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues)
Specify constructor argument values for this bean.
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 setDescription(String description)
Set a human-readable description of this bean definition.
void setDestroyMethodName(String destroyMethodName)
Set the name of the destroy method.
void setEnforceDestroyMethod(boolean enforceDestroyMethod)
Specify whether or not the configured destroy method is the default.
void setEnforceInitMethod(boolean enforceInitMethod)
Specify whether or not the configured init method is the default.
void setFactoryBeanName(String factoryBeanName)
Specify the factory bean to use, if any.
void setFactoryMethodName(String factoryMethodName)
Specify a factory method, if any.
void setInitMethodName(String initMethodName)
Set the name of the initializer method.
void setLazyInit(boolean lazyInit)
Set whether this bean should be lazily initialized.
void setLenientConstructorResolution(boolean lenientConstructorResolution)
Specify whether to resolve constructors in lenient mode (true, which is the default) or to switch to strict resolution (throwing an exception in case of ambigious constructors that all match when converting the arguments, whereas lenient mode would use the one with the 'closest' type matches).
void setMethodOverrides(MethodOverrides methodOverrides)
Specify method overrides for the bean, if any.
void setNonPublicAccessAllowed(boolean nonPublicAccessAllowed)
Specify whether to allow access to non-public constructors and methods, for the case of externalized metadata pointing to those.
void setOriginatingBeanDefinition(BeanDefinition originatingBd)
Set the originating (e.g.
void setPrimary(boolean primary)
Set whether this bean is a primary autowire candidate.
void setPropertyValues(MutablePropertyValues propertyValues)
Specify property values for this bean, if any.
void setResource(Resource resource)
Set the resource that this bean definition came from (for the purpose of showing context in case of errors).
void setResourceDescription(String resourceDescription)
Set a description of the resource that this bean definition came from (for the purpose of showing context in case of errors).
void setRole(int role)
Set the role hint for this BeanDefinition.
void setScope(String scope)
Set the name of the target scope for the bean.
void setSingleton(boolean singleton)
This method is deprecated. since Spring 2.5, in favor of setScope(String)
void setSynthetic(boolean synthetic)
Set whether this bean definition is 'synthetic', that is, not defined by the application itself (for example, an infrastructure bean such as a helper for auto-proxying, created through <aop:config>).
String toString()
void validate()
Validate this bean definition.
Protected Methods
void prepareMethodOverride(MethodOverride mo)
Validate and prepare the given method override.
[Expand]
Inherited Methods
From class org.springframework.beans.BeanMetadataAttributeAccessor
From class org.springframework.core.AttributeAccessorSupport
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.factory.config.BeanDefinition
From interface org.springframework.core.AttributeAccessor

Constants

public static final int AUTOWIRE_AUTODETECT

Also: SpringBeans

This constant is deprecated.
as of Spring 3.0: If you are using mixed autowiring strategies, use annotation-based autowiring for clearer demarcation of autowiring needs.

Constant that indicates determining an appropriate autowire strategy through introspection of the bean class.

Constant Value: 4 (0x00000004)

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 static final int AUTOWIRE_CONSTRUCTOR

Also: SpringBeans

Constant that indicates autowiring a constructor.

Constant Value: 3 (0x00000003)

public static final int AUTOWIRE_NO

Also: SpringBeans

Constant that indicates no autowiring at all.

Constant Value: 0 (0x00000000)

public static final int DEPENDENCY_CHECK_ALL

Also: SpringBeans

Constant that indicates dependency checking for all properties (object references as well as "simple" properties).

Constant Value: 3 (0x00000003)

public static final int DEPENDENCY_CHECK_NONE

Also: SpringBeans

Constant that indicates no dependency check at all.

Constant Value: 0 (0x00000000)

public static final int DEPENDENCY_CHECK_OBJECTS

Also: SpringBeans

Constant that indicates dependency checking for object references.

Constant Value: 1 (0x00000001)

public static final int DEPENDENCY_CHECK_SIMPLE

Also: SpringBeans

Constant that indicates dependency checking for "simple" properties.

Constant Value: 2 (0x00000002)

public static final String SCOPE_DEFAULT

Also: SpringBeans

Constant for the default scope name: "", equivalent to singleton status but to be overridden from a parent bean definition (if applicable).

Constant Value: ""

Protected Constructors

protected AbstractBeanDefinition ()

Also: SpringBeans

Create a new AbstractBeanDefinition with default settings.

protected AbstractBeanDefinition (ConstructorArgumentValues cargs, MutablePropertyValues pvs)

Also: SpringBeans

Create a new AbstractBeanDefinition with the given constructor argument values and property values.

protected AbstractBeanDefinition (AbstractBeanDefinition original)

Also: SpringBeans

This constructor is deprecated.
since Spring 2.5, in favor of AbstractBeanDefinition(BeanDefinition)

Create a new AbstractBeanDefinition as deep copy of the given bean definition.

Parameters
original the original bean definition to copy from

protected AbstractBeanDefinition (BeanDefinition original)

Also: SpringBeans

Create a new AbstractBeanDefinition as deep copy of the given bean definition.

Parameters
original the original bean definition to copy from

Public Methods

public void addQualifier (AutowireCandidateQualifier qualifier)

Also: SpringBeans

Register a qualifier to be used for autowire candidate resolution, keyed by the qualifier's type name.

See Also

public void applyDefaults (BeanDefinitionDefaults defaults)

Also: SpringBeans

Apply the provided default values to this bean.

Parameters
defaults the defaults to apply

public Object clone ()

Also: SpringBeans

Public declaration of Object's clone() method. Delegates to cloneBeanDefinition().

See Also

public abstract AbstractBeanDefinition cloneBeanDefinition ()

Also: SpringBeans

Clone this bean definition. To be implemented by concrete subclasses.

Returns
  • the cloned bean definition object

public void copyQualifiersFrom (AbstractBeanDefinition source)

Also: SpringBeans

Copy the qualifiers from the supplied AbstractBeanDefinition to this bean definition.

Parameters
source the AbstractBeanDefinition to copy from

public boolean equals (Object other)

Also: SpringBeans

public int getAutowireMode ()

Also: SpringBeans

Return the autowire mode as specified in the bean definition.

public Class<?> getBeanClass ()

Also: SpringBeans

Return the class of the wrapped bean, if already resolved.

Returns
  • the bean class, or null if none defined
Throws
IllegalStateException if the bean definition does not define a bean class, or a specified bean class name has not been resolved into an actual Class

public String getBeanClassName ()

Also: SpringBeans

Return the current bean class name of this bean definition.

Note that this does not have to be the actual class name used at runtime, in case of a child definition overriding/inheriting the class name from its parent. Hence, do not consider this to be the definitive bean type at runtime but rather only use it for parsing purposes at the individual bean definition level.

public ConstructorArgumentValues getConstructorArgumentValues ()

Also: SpringBeans

Return constructor argument values for this bean (never null).

Returns
  • the ConstructorArgumentValues object (never null)

public int getDependencyCheck ()

Also: SpringBeans

Return the dependency check code.

public String[] getDependsOn ()

Also: SpringBeans

Return the bean names that this bean depends on.

public String getDescription ()

Also: SpringBeans

Return a human-readable description of this bean definition.

public String getDestroyMethodName ()

Also: SpringBeans

Return the name of the destroy method.

public String getFactoryBeanName ()

Also: SpringBeans

Return the factory bean name, if any.

public String getFactoryMethodName ()

Also: SpringBeans

Return a factory method, if any.

public String getInitMethodName ()

Also: SpringBeans

Return the name of the initializer method.

public MethodOverrides getMethodOverrides ()

Also: SpringBeans

Return information about methods to be overridden by the IoC container. This will be empty if there are no method overrides. Never returns null.

public BeanDefinition getOriginatingBeanDefinition ()

Also: SpringBeans

Return the originating BeanDefinition, or null if none. Allows for retrieving the decorated bean definition, if any.

Note that this method returns the immediate originator. Iterate through the originator chain to find the original BeanDefinition as defined by the user.

public MutablePropertyValues getPropertyValues ()

Also: SpringBeans

Return property values for this bean (never null).

Returns
  • the MutablePropertyValues object (never null)

public AutowireCandidateQualifier getQualifier (String typeName)

Also: SpringBeans

Return the qualifier mapped to the provided type name.

public Set<AutowireCandidateQualifier> getQualifiers ()

Also: SpringBeans

Return all registered qualifiers.

Returns

public int getResolvedAutowireMode ()

Also: SpringBeans

Return the resolved autowire code, (resolving AUTOWIRE_AUTODETECT to AUTOWIRE_CONSTRUCTOR or AUTOWIRE_BY_TYPE).

public Resource getResource ()

Also: SpringBeans

Return the resource that this bean definition came from.

public String getResourceDescription ()

Also: SpringBeans

Return a description of the resource that this bean definition came from (for the purpose of showing context in case of errors).

public int getRole ()

Also: SpringBeans

Return the role hint for this BeanDefinition.

public String getScope ()

Also: SpringBeans

Return the name of the target scope for the bean.

public boolean hasBeanClass ()

Also: SpringBeans

Return whether this definition specifies a bean class.

public boolean hasConstructorArgumentValues ()

Also: SpringBeans

Return if there are constructor argument values defined for this bean.

public boolean hasQualifier (String typeName)

Also: SpringBeans

Return whether this bean has the specified qualifier.

public int hashCode ()

Also: SpringBeans

public boolean isAbstract ()

Also: SpringBeans

Return whether this bean is "abstract", i.e. not meant to be instantiated itself but rather just serving as parent for concrete child bean definitions.

public boolean isAutowireCandidate ()

Also: SpringBeans

Return whether this bean is a candidate for getting autowired into some other bean.

public boolean isEnforceDestroyMethod ()

Also: SpringBeans

Indicate whether the configured destroy method is the default.

public boolean isEnforceInitMethod ()

Also: SpringBeans

Indicate whether the configured init method is the default.

public boolean isLazyInit ()

Also: SpringBeans

Return whether this bean should be lazily initialized, i.e. not eagerly instantiated on startup. Only applicable to a singleton bean.

public boolean isLenientConstructorResolution ()

Also: SpringBeans

Return whether to resolve constructors in lenient mode or in strict mode.

public boolean isNonPublicAccessAllowed ()

Also: SpringBeans

Return whether to allow access to non-public constructors and methods.

public boolean isPrimary ()

Also: SpringBeans

Return whether this bean is a primary autowire candidate. If this value is true for exactly one bean among multiple matching candidates, it will serve as a tie-breaker.

public boolean isPrototype ()

Also: SpringBeans

Return whether this a Prototype, with an independent instance returned for each call.

See Also

public boolean isSingleton ()

Also: SpringBeans

Return whether this a Singleton, with a single shared instance returned from all calls.

See Also

public boolean isSynthetic ()

Also: SpringBeans

Return whether this bean definition is 'synthetic', that is, not defined by the application itself.

public void overrideFrom (AbstractBeanDefinition other)

Also: SpringBeans

This method is deprecated.
since Spring 2.5, in favor of overrideFrom(BeanDefinition)

Override settings in this bean definition (assumably a copied parent from a parent-child inheritance relationship) from the given bean definition (assumably the child).

public void overrideFrom (BeanDefinition other)

Also: SpringBeans

Override settings in this bean definition (assumably a copied parent from a parent-child inheritance relationship) from the given bean definition (assumably the child).

  • Will override beanClass if specified in the given bean definition.
  • Will always take abstract, scope, lazyInit, autowireMode, dependencyCheck, and dependsOn from the given bean definition.
  • Will add constructorArgumentValues, propertyValues, methodOverrides from the given bean definition to existing ones.
  • Will override factoryBeanName, factoryMethodName, initMethodName, and destroyMethodName if specified in the given bean definition.

public void prepareMethodOverrides ()

Also: SpringBeans

Validate and prepare the method overrides defined for this bean. Checks for existence of a method with the specified name.

Throws
BeanDefinitionValidationException in case of validation failure

public Class resolveBeanClass (ClassLoader classLoader)

Also: SpringBeans

Determine the class of the wrapped bean, resolving it from a specified class name if necessary. Will also reload a specified Class from its name when called with the bean class already resolved.

Parameters
classLoader the ClassLoader to use for resolving a (potential) class name
Returns
  • the resolved bean class
Throws
ClassNotFoundException if the class name could be resolved

public void setAbstract (boolean abstractFlag)

Also: SpringBeans

Set if this bean is "abstract", i.e. not meant to be instantiated itself but rather just serving as parent for concrete child bean definitions.

Default is "false". Specify true to tell the bean factory to not try to instantiate that particular bean in any case.

public void setAutowireCandidate (boolean autowireCandidate)

Also: SpringBeans

Set whether this bean is a candidate for getting autowired into some other bean.

public void setAutowireMode (int autowireMode)

Also: SpringBeans

Set the autowire mode. This determines whether any automagical detection and setting of bean references will happen. Default is AUTOWIRE_NO, which means there's no autowire.

Parameters
autowireMode the autowire mode to set. Must be one of the constants defined in this class.

public void setBeanClass (Class<?> beanClass)

Also: SpringBeans

Specify the class for this bean.

public void setBeanClassName (String beanClassName)

Also: SpringBeans

Override the bean class name of this bean definition.

The class name can be modified during bean factory post-processing, typically replacing the original class name with a parsed variant of it.

public void setConstructorArgumentValues (ConstructorArgumentValues constructorArgumentValues)

Also: SpringBeans

Specify constructor argument values for this bean.

public void setDependencyCheck (int dependencyCheck)

Also: SpringBeans

Set the dependency check code.

Parameters
dependencyCheck the code to set. Must be one of the four constants defined in this class.

public void setDependsOn (String[] dependsOn)

Also: SpringBeans

Set the names of the beans that this bean depends on being initialized. The bean factory will guarantee that these beans get initialized first.

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 setDescription (String description)

Also: SpringBeans

Set a human-readable description of this bean definition.

public void setDestroyMethodName (String destroyMethodName)

Also: SpringBeans

Set the name of the destroy method. The default is null in which case there is no destroy method.

public void setEnforceDestroyMethod (boolean enforceDestroyMethod)

Also: SpringBeans

Specify whether or not the configured destroy method is the default. Default value is false.

public void setEnforceInitMethod (boolean enforceInitMethod)

Also: SpringBeans

Specify whether or not the configured init method is the default. Default value is false.

public void setFactoryBeanName (String factoryBeanName)

Also: SpringBeans

Specify the factory bean to use, if any.

public void setFactoryMethodName (String factoryMethodName)

Also: SpringBeans

Specify a factory method, if any. This method will be invoked with constructor arguments, or with no arguments if none are specified. The method will be invoked on the specified factory bean, if any, or otherwise as a static method on the local bean class.

Parameters
factoryMethodName static factory method name, or null if normal constructor creation should be used

public void setInitMethodName (String initMethodName)

Also: SpringBeans

Set the name of the initializer method. The default is null in which case there is no initializer method.

public void setLazyInit (boolean lazyInit)

Also: SpringBeans

Set whether this bean should be lazily initialized.

If false, the bean will get instantiated on startup by bean factories that perform eager initialization of singletons.

public void setLenientConstructorResolution (boolean lenientConstructorResolution)

Also: SpringBeans

Specify whether to resolve constructors in lenient mode (true, which is the default) or to switch to strict resolution (throwing an exception in case of ambigious constructors that all match when converting the arguments, whereas lenient mode would use the one with the 'closest' type matches).

public void setMethodOverrides (MethodOverrides methodOverrides)

Also: SpringBeans

Specify method overrides for the bean, if any.

public void setNonPublicAccessAllowed (boolean nonPublicAccessAllowed)

Also: SpringBeans

Specify whether to allow access to non-public constructors and methods, for the case of externalized metadata pointing to those.

This applies to constructor resolution, factory method resolution, and also init/destroy methods. Bean property accessors have to be public in any case and are not affected by this setting.

Note that annotation-driven configuration will still access non-public members as far as they have been annotated. This setting applies to externalized metadata in this bean definition only.

public void setOriginatingBeanDefinition (BeanDefinition originatingBd)

Also: SpringBeans

Set the originating (e.g. decorated) BeanDefinition, if any.

public void setPrimary (boolean primary)

Also: SpringBeans

Set whether this bean is a primary autowire candidate. If this value is true for exactly one bean among multiple matching candidates, it will serve as a tie-breaker.

public void setPropertyValues (MutablePropertyValues propertyValues)

Also: SpringBeans

Specify property values for this bean, if any.

public void setResource (Resource resource)

Set the resource that this bean definition came from (for the purpose of showing context in case of errors).

public void setResourceDescription (String resourceDescription)

Also: SpringBeans

Set a description of the resource that this bean definition came from (for the purpose of showing context in case of errors).

public void setRole (int role)

Also: SpringBeans

Set the role hint for this BeanDefinition.

public void setScope (String scope)

Also: SpringBeans

Set the name of the target scope for the bean.

Default is singleton status, although this is only applied once a bean definition becomes active in the containing factory. A bean definition may eventually inherit its scope from a parent bean definitionFor this reason, the default scope name is empty (empty String), with singleton status being assumed until a resolved scope will be set.

public void setSingleton (boolean singleton)

Also: SpringBeans

This method is deprecated.
since Spring 2.5, in favor of setScope(String)

Set if this a Singleton, with a single, shared instance returned on all calls. In case of "false", the BeanFactory will apply the Prototype design pattern, with each caller requesting an instance getting an independent instance. How this is exactly defined will depend on the BeanFactory.

"Singletons" are the commoner type, so the default is "true". Note that as of Spring 2.0, this flag is just an alternative way to specify scope="singleton" or scope="prototype".

public void setSynthetic (boolean synthetic)

Also: SpringBeans

Set whether this bean definition is 'synthetic', that is, not defined by the application itself (for example, an infrastructure bean such as a helper for auto-proxying, created through <aop:config>).

public String toString ()

Also: SpringBeans

public void validate ()

Also: SpringBeans

Validate this bean definition.

Throws
BeanDefinitionValidationException in case of validation failure

Protected Methods

protected void prepareMethodOverride (MethodOverride mo)

Also: SpringBeans

Validate and prepare the given method override. Checks for existence of a method with the specified name, marking it as not overloaded if none found.

Parameters
mo the MethodOverride object to validate
Throws
BeanDefinitionValidationException in case of validation failure