Package org.openmetadata.service.util
Class ReflectionUtil
- java.lang.Object
-
- org.openmetadata.service.util.ReflectionUtil
-
public class ReflectionUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>createConnectionConfigClass(String connectionType, ServiceType serviceType)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 Detail
-
createConnectionConfigClass
public static Class<?> createConnectionConfigClass(String connectionType, ServiceType serviceType) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
setValueInMethod
public static void setValueInMethod(Object toEncryptObject, String fieldValue, Method toSet)
-
getToSetMethod
public static Method getToSetMethod(Object toEncryptObject, Object obj, String fieldName)
-
getObjectFromMethod
public static Object getObjectFromMethod(Method method, Object toEncryptObject)
-
isGetMethodOfObject
public static boolean isGetMethodOfObject(Method method)
-
-