Package com.google.inject.internal
Class ConstructionContext<T>
java.lang.Object
com.google.inject.internal.ConstructionContext<T>
Context of a dependency construction. Used to manage circular references.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) T
(package private) List
<DelegatingInvocationHandler<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProxy
(InjectorImpl.InjectorOptions injectorOptions, Class<?> expectedType) void
boolean
void
void
setCurrentReference
(T currentReference) void
setProxyDelegates
(T delegate) void
-
Field Details
-
currentReference
T currentReference -
constructing
boolean constructing -
invocationHandlers
List<DelegatingInvocationHandler<T>> invocationHandlers
-
-
Constructor Details
-
ConstructionContext
ConstructionContext()
-
-
Method Details
-
getCurrentReference
-
removeCurrentReference
public void removeCurrentReference() -
setCurrentReference
-
isConstructing
public boolean isConstructing() -
startConstruction
public void startConstruction() -
finishConstruction
public void finishConstruction() -
createProxy
public Object createProxy(InjectorImpl.InjectorOptions injectorOptions, Class<?> expectedType) throws InternalProvisionException - Throws:
InternalProvisionException
-
setProxyDelegates
-