org.slim3.commons.util
Class ConstructorUtil

java.lang.Object
  extended by org.slim3.commons.util.ConstructorUtil

public final class ConstructorUtil
extends Object

A utility class for Constructor.

Since:
3.0
Author:
higa

Method Summary
static
<T> T
newInstance(Constructor<T> constructor, Object... parameters)
          Returns a new instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 constructor
parameters - 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.