public class Dl4jReflection extends Object
| Modifier and Type | Method and Description |
|---|---|
static Field[] |
getAllFields(Class<?> clazz) |
static Constructor<?> |
getEmptyConstructor(Class<?> clazz)
Gets the empty constructor from a class
|
static Properties |
getFieldsAsProperties(Object obj,
Class<?>[] clazzes)
Get fields as properties
|
static void |
setProperties(Object obj,
Properties props)
Sets the properties of the given object
|
public static Constructor<?> getEmptyConstructor(Class<?> clazz)
clazz - the class to getFromOrigin the constructor frompublic static void setProperties(Object obj, Properties props) throws Exception
obj - the object o setprops - the properties to setExceptionpublic static Properties getFieldsAsProperties(Object obj, Class<?>[] clazzes) throws Exception
obj - the object to get fields forclazzes - the classes to use for reflection and properties.
TExceptionCopyright © 2016. All Rights Reserved.