public abstract class AnnotationBeanUtils
extends java.lang.Object
Constructor and Description |
---|
AnnotationBeanUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyPropertiesToBean(java.lang.annotation.Annotation ann,
java.lang.Object bean,
java.lang.String... excludedProperties)
Copy the properties of the supplied
Annotation to the supplied target bean. |
static void |
copyPropertiesToBean(java.lang.annotation.Annotation ann,
java.lang.Object bean,
StringValueResolver valueResolver,
java.lang.String... excludedProperties)
Copy the properties of the supplied
Annotation to the supplied target bean. |
public static void copyPropertiesToBean(java.lang.annotation.Annotation ann, java.lang.Object bean, java.lang.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(java.lang.annotation.Annotation ann, java.lang.Object bean, StringValueResolver valueResolver, java.lang.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