org.camunda.bpm.model.xml.impl.util
Class ReflectUtil

java.lang.Object
  extended by org.camunda.bpm.model.xml.impl.util.ReflectUtil

public abstract class ReflectUtil
extends Object

Author:
Tom Baeyens

Constructor Summary
ReflectUtil()
           
 
Method Summary
static
<T> T
createInstance(Class<T> type, Object... parameters)
          Create a new instance of the provided type
static URL getResource(String name)
           
static URL getResource(String name, ClassLoader classLoader)
           
static File getResourceAsFile(String path)
           
static InputStream getResourceAsStream(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 InputStream getResourceAsStream(String name)

getResource

public static URL getResource(String name)

getResource

public static URL getResource(String name,
                              ClassLoader classLoader)

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


Copyright © 2015 camunda services GmbH. All rights reserved.