Class ReflectUtil


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

      Constructors 
      Constructor Description
      ReflectUtil()  
    • 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 java.net.URL getResource​(java.lang.String name)  
      static java.net.URL getResource​(java.lang.String name, java.lang.ClassLoader classLoader)  
      static java.io.File getResourceAsFile​(java.lang.String path)  
      static java.io.InputStream 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 java.io.InputStream getResourceAsStream​(java.lang.String name)
      • getResource

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

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

        public static java.io.File 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
        Parameters:
        type - the class to create a new instance of
        parameters - the parameters to pass to the constructor
        Returns:
        the created instance