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)
|
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
|
prepareMethodOverride(MethodOverride mo)
Validate and prepare the given method override.
|
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)
|
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.
|