Class ReflectUtil

  • public abstract class ReflectUtil
    extends java.lang.Object
    Tom Baeyens
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T createInstance​(java.lang.Class<T> type, java.lang.Object... parameters)
      Create a new instance of the provided type
      static getResource​(java.lang.String name)  
      static getResource​(java.lang.String name, java.lang.ClassLoader classLoader)  
      static getResourceAsFile​(java.lang.String path)  
      static getResourceAsStream​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

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

      • ReflectUtil

        public ReflectUtil()
    • Method Detail

      • getResourceAsStream

        public static getResourceAsStream​(java.lang.String name)
      • getResource

        public static getResource​(java.lang.String name)
      • getResource

        public static getResource​(java.lang.String name,
                                               java.lang.ClassLoader classLoader)
      • getResourceAsFile

        public static getResourceAsFile​(java.lang.String path)
      • createInstance

        public static <T> T createInstance​(java.lang.Class<T> type,
                                           java.lang.Object... parameters)
        Create a new instance of the provided type
        type - the class to create a new instance of
        parameters - the parameters to pass to the constructor
        the created instance