org.elasticsearch.common.inject.internal
Class ConstructionContext<T>

java.lang.Object
  extended by org.elasticsearch.common.inject.internal.ConstructionContext<T>

public class ConstructionContext<T>
extends Object

Context of a dependency construction. Used to manage circular references.

Author:
crazybob@google.com (Bob Lee)

Constructor Summary
ConstructionContext()
           
 
Method Summary
 Object createProxy(Errors errors, Class<?> expectedType)
           
 void finishConstruction()
           
 T getCurrentReference()
           
 boolean isConstructing()
           
 void removeCurrentReference()
           
 void setCurrentReference(T currentReference)
           
 void setProxyDelegates(T delegate)
           
 void startConstruction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstructionContext

public ConstructionContext()
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 Object createProxy(Errors errors,
                          Class<?> expectedType)
                   throws ErrorsException
Throws:
ErrorsException

setProxyDelegates

public void setProxyDelegates(T delegate)


Copyright © 2009-2012. All Rights Reserved.