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
ConstructorsModifierConstructorDescriptionprivate
AssistedConstructor
(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AssistedConstructor<T>
create
(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) Returns theParameterListKey
for 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 theParameterListKey
for this constructor. TheParameterListKey
is created from the ordered list ofAssisted
constructor parameters. -
getAllParameters
-
getDeclaredExceptions
-
newInstance
Returns an instance of T, constructed using this constructor, with the supplied arguments.- Throws:
Throwable
-
toString
-