Class ReflectionMapperUtil


  • public class ReflectionMapperUtil
    extends java.lang.Object
    Scan a source Class or Method and map it into a targetClass where fields has the wanted annotation.
    Since:
    1.0.2
    See Also:
    Moved from old project SimpleToolbox
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T scanAnnotationSource​(java.lang.Class<?> sourceClass, java.lang.Class<T> targetClass)  
      static <T> T scanAnnotationSource​(java.lang.reflect.Method sourceMethod, java.lang.Class<T> targetClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReflectionMapperUtil

        public ReflectionMapperUtil()
    • Method Detail

      • scanAnnotationSource

        public static <T> T scanAnnotationSource​(java.lang.Class<?> sourceClass,
                                                 java.lang.Class<T> targetClass)
      • scanAnnotationSource

        public static <T> T scanAnnotationSource​(java.lang.reflect.Method sourceMethod,
                                                 java.lang.Class<T> targetClass)