Package com.google.inject.assistedinject
Class AssistedConstructor<T>
java.lang.Object
com.google.inject.assistedinject.AssistedConstructor<T>
Internal respresentation of a constructor annotated with
AssistedInject-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAssistedConstructor(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AssistedConstructor<T>create(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) Returns theParameterListKeyfor this constructor.newInstance(Object[] args) Returns an instance of T, constructed using this constructor, with the supplied arguments.toString()
-
Field Details
-
constructor
-
assistedParameters
-
allParameters
-
-
Constructor Details
-
AssistedConstructor
-
-
Method Details
-
create
public static <T> AssistedConstructor<T> create(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) -
getAssistedParameters
Returns theParameterListKeyfor this constructor. TheParameterListKeyis created from the ordered list ofAssistedconstructor parameters. -
getAllParameters
-
getDeclaredExceptions
-
newInstance
Returns an instance of T, constructed using this constructor, with the supplied arguments.- Throws:
Throwable
-
toString
-