org.slim3.commons.util
Class ConstructorUtil
java.lang.Object
org.slim3.commons.util.ConstructorUtil
public final class ConstructorUtil
- extends Object
A utility class for Constructor
.
- Since:
- 3.0
- Author:
- higa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newInstance
public static <T> T newInstance(Constructor<T> constructor,
Object... parameters)
throws IllegalAccessRuntimeException,
InstantiationRuntimeException
- Returns a new instance.
- Type Parameters:
T
- the type- Parameters:
constructor
- the constructorparameters
- the parameters
- Returns:
- a new instance
- Throws:
IllegalAccessRuntimeException
- if IllegalAccessException
is encountered
InstantiationRuntimeException
- if InstantiationException
is encountered
Copyright © 2008-2009 The Slim3 project. All Rights Reserved.