Package | Description |
---|---|
org.springframework.beans |
This package contains interfaces and classes for manipulating Java beans.
|
org.springframework.beans.factory.config |
SPI interfaces and configuration-related convenience classes for bean factories.
|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
org.springframework.context.support |
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.multipart.support |
Support classes for the multipart resolution framework.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Method and Description |
---|---|
MutablePropertyValues |
MutablePropertyValues.add(String propertyName,
Object propertyValue)
Add a PropertyValue object, replacing any existing one for the
corresponding property or getting merged with it (if applicable).
|
MutablePropertyValues |
MutablePropertyValues.addPropertyValue(PropertyValue pv)
Add a PropertyValue object, replacing any existing one for the
corresponding property or getting merged with it (if applicable).
|
MutablePropertyValues |
MutablePropertyValues.addPropertyValues(Map<?,?> other)
Add all property values from the given Map.
|
MutablePropertyValues |
MutablePropertyValues.addPropertyValues(PropertyValues other)
Copy all given PropertyValues into this object.
|
Modifier and Type | Method and Description |
---|---|
MutablePropertyValues |
BeanDefinition.getPropertyValues()
Return the property values to be applied to a new instance of the bean.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BeanDefinitionVisitor.visitPropertyValues(MutablePropertyValues pvs) |
Modifier and Type | Method and Description |
---|---|
MutablePropertyValues |
AbstractBeanDefinition.getPropertyValues()
Return property values for this bean (never
null ). |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractAutowireCapableBeanFactory.autowireByName(String beanName,
AbstractBeanDefinition mbd,
BeanWrapper bw,
MutablePropertyValues pvs)
Fill in any missing property values with references to
other beans in this factory if autowire is set to "byName".
|
protected void |
AbstractAutowireCapableBeanFactory.autowireByType(String beanName,
AbstractBeanDefinition mbd,
BeanWrapper bw,
MutablePropertyValues pvs)
Abstract method defining "autowire by type" (bean properties by type) behavior.
|
void |
AbstractBeanDefinition.setPropertyValues(MutablePropertyValues propertyValues)
Specify property values for this bean, if any.
|
Constructor and Description |
---|
AbstractBeanDefinition(ConstructorArgumentValues cargs,
MutablePropertyValues pvs)
Create a new AbstractBeanDefinition with the given
constructor argument values and property values.
|
ChildBeanDefinition(String parentName,
Class<?> beanClass,
ConstructorArgumentValues cargs,
MutablePropertyValues pvs)
Create a new ChildBeanDefinition for the given parent,
providing constructor arguments and property values.
|
ChildBeanDefinition(String parentName,
ConstructorArgumentValues cargs,
MutablePropertyValues pvs)
Create a new ChildBeanDefinition for the given parent.
|
ChildBeanDefinition(String parentName,
MutablePropertyValues pvs)
Create a new ChildBeanDefinition for the given parent.
|
ChildBeanDefinition(String parentName,
String beanClassName,
ConstructorArgumentValues cargs,
MutablePropertyValues pvs)
Create a new ChildBeanDefinition for the given parent,
providing constructor arguments and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
StaticApplicationContext.registerPrototype(String name,
Class<?> clazz,
MutablePropertyValues pvs)
Register a prototype bean with the underlying bean factory.
|
void |
StaticApplicationContext.registerSingleton(String name,
Class<?> clazz,
MutablePropertyValues pvs)
Register a singleton bean with the underlying bean factory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DataBinder.applyPropertyValues(MutablePropertyValues mpvs)
Apply given property values to the target object.
|
protected void |
DataBinder.checkAllowedFields(MutablePropertyValues mpvs)
Check the given property values against the allowed fields,
removing values for fields that are not allowed.
|
protected void |
DataBinder.checkRequiredFields(MutablePropertyValues mpvs)
Check the given property values against the required fields,
generating missing field errors where appropriate.
|
protected void |
DataBinder.doBind(MutablePropertyValues mpvs)
Actual implementation of the binding process, working with the
passed-in MutablePropertyValues instance.
|
Modifier and Type | Class and Description |
---|---|
class |
ServletRequestParameterPropertyValues
PropertyValues implementation created from parameters in a ServletRequest.
|
Modifier and Type | Method and Description |
---|---|
protected void |
WebDataBinder.adaptEmptyArrayIndices(MutablePropertyValues mpvs)
Check for property values with names that end on
"[]" . |
protected void |
ServletRequestDataBinder.addBindValues(MutablePropertyValues mpvs,
ServletRequest request)
Extension point that subclasses can use to add extra bind values for a
request.
|
protected void |
WebDataBinder.bindMultipart(Map<String,List<MultipartFile>> multipartFiles,
MutablePropertyValues mpvs)
Bind all multipart files contained in the given request, if any
(in case of a multipart request).
|
protected void |
WebDataBinder.checkFieldDefaults(MutablePropertyValues mpvs)
Check the given property values for field defaults,
i.e.
|
protected void |
WebDataBinder.checkFieldMarkers(MutablePropertyValues mpvs)
Check the given property values for field markers,
i.e.
|
protected void |
WebDataBinder.doBind(MutablePropertyValues mpvs)
This implementation performs a field default and marker check
before delegating to the superclass binding process.
|
Modifier and Type | Method and Description |
---|---|
static void |
StandardServletPartUtils.bindParts(HttpServletRequest request,
MutablePropertyValues mpvs,
boolean bindEmpty)
Bind all parts from the given servlet request.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ExtendedServletRequestDataBinder.addBindValues(MutablePropertyValues mpvs,
ServletRequest request)
Merge URI variables into the property values to use for data binding.
|