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.core |
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
|
org.springframework.core.convert |
Type conversion system API.
|
org.springframework.jmx.access |
Provides support for accessing remote MBean resources.
|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
Modifier and Type | Method and Description |
---|---|
static MethodParameter |
BeanUtils.getWriteMethodParameter(PropertyDescriptor pd)
Obtain a new MethodParameter object for the write method of the
specified property.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
TypeConverter.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam)
Convert the value to the required type (if necessary from a String).
|
<T> T |
SimpleTypeConverter.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
<T> T |
DirectFieldAccessor.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
<T> T |
BeanWrapperImpl.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
Modifier and Type | Method and Description |
---|---|
MethodParameter |
DependencyDescriptor.getMethodParameter()
Return the wrapped MethodParameter, if any.
|
Constructor and Description |
---|
DependencyDescriptor(MethodParameter methodParameter,
boolean required)
Create a new descriptor for a method or constructor parameter.
|
DependencyDescriptor(MethodParameter methodParameter,
boolean required,
boolean eager)
Create a new descriptor for a method or constructor parameter.
|
Modifier and Type | Method and Description |
---|---|
static MethodParameter |
MethodParameter.forMethodOrConstructor(Object methodOrConstructor,
int parameterIndex)
Create a new MethodParameter for the given method or constructor.
|
Modifier and Type | Method and Description |
---|---|
static Class<?> |
GenericCollectionTypeResolver.getCollectionParameterType(MethodParameter methodParam)
Determine the generic element type of the given Collection parameter.
|
static Class<?> |
GenericCollectionTypeResolver.getMapKeyParameterType(MethodParameter methodParam)
Determine the generic key type of the given Map parameter.
|
static Class<?> |
GenericCollectionTypeResolver.getMapValueParameterType(MethodParameter methodParam)
Determine the generic value type of the given Map parameter.
|
static Type |
GenericTypeResolver.getTargetType(MethodParameter methodParam)
Determine the target type for the given parameter specification.
|
static String |
Conventions.getVariableNameForParameter(MethodParameter parameter)
Determine the conventional variable name for the supplied parameter,
taking the generic collection type (if any) into account.
|
static Class<?> |
GenericTypeResolver.resolveParameterType(MethodParameter methodParam,
Class clazz)
Determine the target type for the given generic parameter type.
|
Constructor and Description |
---|
MethodParameter(MethodParameter original)
Copy constructor, resulting in an independent MethodParameter object
based on the same metadata and cache state that the original object was in.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescriptor |
TypeDescriptor.nested(MethodParameter methodParameter,
int nestingLevel)
Creates a type descriptor for a nested type declared within the method parameter.
|
Constructor and Description |
---|
TypeDescriptor(MethodParameter methodParameter)
Create a new type descriptor from a
MethodParameter . |
Modifier and Type | Method and Description |
---|---|
protected Object |
MBeanClientInterceptor.convertResultValueIfNecessary(Object result,
MethodParameter parameter)
Convert the given result object (from attribute access or operation invocation)
to the specified target class for returning from the proxy method.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
DataBinder.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
Copyright © 2012. All Rights Reserved.