Class ConstructionContext<T>
java.lang.Object
org.elasticsearch.common.inject.internal.ConstructionContext<T>
public class ConstructionContext<T>
extends java.lang.Object
Context of a dependency construction. Used to manage circular references.
-
Constructor Summary
Constructors Constructor Description ConstructionContext() -
Method Summary
Modifier and Type Method Description java.lang.ObjectcreateProxy(Errors errors, java.lang.Class<?> expectedType)voidfinishConstruction()TgetCurrentReference()booleanisConstructing()voidremoveCurrentReference()voidsetCurrentReference(T currentReference)voidsetProxyDelegates(T delegate)voidstartConstruction()
-
Constructor Details
-
ConstructionContext
public ConstructionContext()
-
-
Method Details
-
getCurrentReference
-
removeCurrentReference
public void removeCurrentReference() -
setCurrentReference
-
isConstructing
public boolean isConstructing() -
startConstruction
public void startConstruction() -
finishConstruction
public void finishConstruction() -
createProxy
public java.lang.Object createProxy(Errors errors, java.lang.Class<?> expectedType) throws ErrorsException- Throws:
ErrorsException
-
setProxyDelegates
-