Class ReflectUtil
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.util.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 typestatic 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)
-
-
-
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 ofparameters
- the parameters to pass to the constructor- Returns:
- the created instance
-
-