Package org.apache.nifi.jms.cf
Class Utils
java.lang.Object
org.apache.nifi.jms.cf.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodfindMethod(String name, Class<?> targetClass) Finds a method by name on the target class.static Method[]findMethods(String name, Class<?> targetClass) Finds a method by name on the target class.(package private) static <T> TnewDefaultInstance(String className) Creates new instance of the class specified by 'className' by first loading it using thread context class loader and then executing default constructor.
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
newDefaultInstance
Creates new instance of the class specified by 'className' by first loading it using thread context class loader and then executing default constructor. -
findMethod
Finds a method by name on the target class. If more then one method present it will return the first one encountered.- Parameters:
name- method nametargetClass- instance of target class- Returns:
- instance of
Method
-
findMethods
Finds a method by name on the target class. If more then one method present it will return the first one encountered.- Parameters:
name- method nametargetClass- instance of target class- Returns:
- Array of
Method
-