Class ReflectUtil


  • public abstract class ReflectUtil
    extends Object
    Author:
    Tom Baeyens
    • Constructor Detail

      • ReflectUtil

        public ReflectUtil()
    • Method Detail

      • getResourceAsStream

        public static InputStream getResourceAsStream​(String name)
      • getResource

        public static URL getResource​(String name)
      • getResourceAsFile

        public static File getResourceAsFile​(String path)
      • createInstance

        public static <T> T createInstance​(Class<T> type,
                                           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