@Deprecated public abstract class AnnotationBeanUtils extends Object
Constructor and Description |
---|
AnnotationBeanUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
copyPropertiesToBean(Annotation ann,
Object bean,
String... excludedProperties)
Deprecated.
Copy the properties of the supplied
Annotation to the supplied target bean. |
static void |
copyPropertiesToBean(Annotation ann,
Object bean,
StringValueResolver valueResolver,
String... excludedProperties)
Deprecated.
Copy the properties of the supplied
Annotation to the supplied target bean. |
public static void copyPropertiesToBean(Annotation ann, Object bean, String... excludedProperties)
Annotation
to the supplied target bean.
Any properties defined in excludedProperties
will not be copied.ann
- the annotation to copy frombean
- the bean instance to copy toexcludedProperties
- the names of excluded properties, if anyBeanWrapper
public static void copyPropertiesToBean(Annotation ann, Object bean, @Nullable StringValueResolver valueResolver, String... excludedProperties)
Annotation
to the supplied target bean.
Any properties defined in excludedProperties
will not be copied.
A specified value resolver may resolve placeholders in property values, for example.
ann
- the annotation to copy frombean
- the bean instance to copy tovalueResolver
- a resolve to post-process String property values (may be null
)excludedProperties
- the names of excluded properties, if anyBeanWrapper