类 AnnotationBeanUtils


  • @Deprecated
    public abstract class AnnotationBeanUtils
    extends Object
    已过时。
    as of 5.2, in favor of custom annotation attribute processing
    General utility methods for working with annotations in JavaBeans style.
    从以下版本开始:
    2.0
    作者:
    Rob Harrop, Juergen Hoeller
    • 方法详细资料

      • copyPropertiesToBean

        public static void copyPropertiesToBean​(Annotation ann,
                                                Object bean,
                                                String... excludedProperties)
        已过时。
        Copy the properties of the supplied Annotation to the supplied target bean. Any properties defined in excludedProperties will not be copied.
        参数:
        ann - the annotation to copy from
        bean - the bean instance to copy to
        excludedProperties - the names of excluded properties, if any
        另请参阅:
        BeanWrapper
      • copyPropertiesToBean

        public static void copyPropertiesToBean​(Annotation ann,
                                                Object bean,
                                                @Nullable
                                                StringValueResolver valueResolver,
                                                String... excludedProperties)
        已过时。
        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.

        参数:
        ann - the annotation to copy from
        bean - the bean instance to copy to
        valueResolver - a resolve to post-process String property values (may be null)
        excludedProperties - the names of excluded properties, if any
        另请参阅:
        BeanWrapper