Class AnnotationBeanUtils
- java.lang.Object
- org.springframework.beans.annotation.AnnotationBeanUtils
@Deprecated public abstract class AnnotationBeanUtils extends Object
Deprecated.as of 5.2, in favor of custom annotation attribute processingGeneral utility methods for working with annotations in JavaBeans style.- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
Constructor Summary
Constructors Constructor Description AnnotationBeanUtils()
Deprecated.
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
copyPropertiesToBean(Annotation ann, Object bean, String... excludedProperties)
Deprecated.Copy the properties of the suppliedAnnotation
to the supplied target bean.static void
copyPropertiesToBean(Annotation ann, Object bean, StringValueResolver valueResolver, String... excludedProperties)
Deprecated.Copy the properties of the suppliedAnnotation
to the supplied target bean.
Constructor Detail
AnnotationBeanUtils
public AnnotationBeanUtils()
Deprecated.
Method Detail
copyPropertiesToBean
public static void copyPropertiesToBean(Annotation ann, Object bean, String... excludedProperties)
Deprecated.Copy the properties of the suppliedAnnotation
to the supplied target bean. Any properties defined inexcludedProperties
will not be copied.- Parameters:
ann
- the annotation to copy frombean
- the bean instance to copy toexcludedProperties
- the names of excluded properties, if any- See Also:
BeanWrapper
copyPropertiesToBean
public static void copyPropertiesToBean(Annotation ann, Object bean, @Nullable StringValueResolver valueResolver, String... excludedProperties)
Deprecated.Copy the properties of the suppliedAnnotation
to the supplied target bean. Any properties defined inexcludedProperties
will not be copied.A specified value resolver may resolve placeholders in property values, for example.
- Parameters:
ann
- the annotation to copy frombean
- the bean instance to copy tovalueResolver
- a resolve to post-process String property values (may benull
)excludedProperties
- the names of excluded properties, if any- See Also:
BeanWrapper