public class InstantiationUtils extends Object
| Constructor and Description |
|---|
InstantiationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Constructor<?> |
findPublicConstructor(Class<?> klass) |
static XMLGregorianCalendar |
newXMLGregorianCalendar() |
static Object |
safeNewInstance(Class<?> klass) |
static Object |
safeNewInstance(Class<?> klass,
Object[] constructorArgs)
newInstance() execution properly wrapped with exception handling.
|
static Object |
safeNewInstance(ValueGeneratorFactory factory,
Class<?> klass) |
public static Object safeNewInstance(ValueGeneratorFactory factory, Class<?> klass)
public static Constructor<?> findPublicConstructor(Class<?> klass)
public static Object safeNewInstance(Class<?> klass, Object[] constructorArgs)
klass - public static XMLGregorianCalendar newXMLGregorianCalendar()
Copyright © 2015. All rights reserved.