blob: 4f10d83c5ada847e938935bd8f26e66840fb1b64 [file] [log] [blame]
// Copyright 2006 Google Inc. All Rights Reserved.
package com.google.inject.spi;
import java.lang.reflect.InvocationTargetException;
/**
* Proxies calls to a {@link java.lang.reflect.Constructor} for a class
* {@code T}.
*
* @author crazybob@google.com (Bob Lee)
*/
public interface ConstructionProxy<T> {
/**
* Constructs an instance of {@code T} for the given arguments.
*/
T newInstance(Object... arguments) throws InvocationTargetException;
}