spring-framework / org.springframework.beans.annotation / AnnotationBeanUtils

AnnotationBeanUtils

abstract class AnnotationBeanUtils

General utility methods for working with annotations in JavaBeans style.

Author
Rob Harrop

Author
Juergen Hoeller

Since
2.0

Constructors

<init>

AnnotationBeanUtils()

General utility methods for working with annotations in JavaBeans style.

Functions

copyPropertiesToBean

open static fun copyPropertiesToBean(ann: Annotation, bean: Any, vararg excludedProperties: String): Unit

Copy the properties of the supplied Annotation to the supplied target bean. Any properties defined in excludedProperties will not be copied.

open static fun copyPropertiesToBean(ann: Annotation, bean: Any, valueResolver: StringValueResolver, vararg excludedProperties: String): Unit

Copy the properties of the supplied 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.