Package com.google.inject.internal
Class ConstructionContext<T>
- java.lang.Object
-
- com.google.inject.internal.ConstructionContext<T>
-
final class ConstructionContext<T> extends java.lang.Object
Context of a dependency construction. Used to manage circular references.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
constructing
(package private) T
currentReference
(package private) java.util.List<DelegatingInvocationHandler<T>>
invocationHandlers
-
Constructor Summary
Constructors Constructor Description ConstructionContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createProxy(InjectorImpl.InjectorOptions injectorOptions, java.lang.Class<?> expectedType)
void
finishConstruction()
T
getCurrentReference()
boolean
isConstructing()
void
removeCurrentReference()
void
setCurrentReference(T currentReference)
void
setProxyDelegates(T delegate)
void
startConstruction()
-
-
-
Field Detail
-
currentReference
T currentReference
-
constructing
boolean constructing
-
invocationHandlers
java.util.List<DelegatingInvocationHandler<T>> invocationHandlers
-
-
Method Detail
-
getCurrentReference
public T getCurrentReference()
-
removeCurrentReference
public void removeCurrentReference()
-
setCurrentReference
public void setCurrentReference(T currentReference)
-
isConstructing
public boolean isConstructing()
-
startConstruction
public void startConstruction()
-
finishConstruction
public void finishConstruction()
-
createProxy
public java.lang.Object createProxy(InjectorImpl.InjectorOptions injectorOptions, java.lang.Class<?> expectedType) throws InternalProvisionException
- Throws:
InternalProvisionException
-
setProxyDelegates
public void setProxyDelegates(T delegate)
-
-