Package org.openmetadata.service.util
Class ReflectionUtil
java.lang.Object
org.openmetadata.service.util.ReflectionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>createConnectionConfigClass(String connectionType, ServiceType serviceType) getMethodsAnnotatedWith(Class<?> clazz, Class<? extends Annotation> annotation) static ObjectgetObjectFromMethod(Method method, Object toEncryptObject) static MethodgetToSetMethod(Object toEncryptObject, Object obj, String fieldName) static booleanisGetMethodOfObject(Method method) static voidsetValueInMethod(Object toEncryptObject, String fieldValue, Method toSet)
-
Method Details
-
getMethodsAnnotatedWith
public static List<Method> getMethodsAnnotatedWith(Class<?> clazz, Class<? extends Annotation> annotation) -
createConnectionConfigClass
public static Class<?> createConnectionConfigClass(String connectionType, ServiceType serviceType) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
setValueInMethod
-
getToSetMethod
-
getObjectFromMethod
-
isGetMethodOfObject
-