org.erights.e.elib.ref
Class Switcher

java.lang.Object
  |
  +--org.erights.e.elib.ref.Switcher

Deprecated. Currently unused, so we may decide to retire this.

public class Switcher
extends Object

Untamed: The facet of a switchable promise for switching the object being offered as the resolution of the promise, or for committing to the current one. The Switcher can continue switching the Ref's target until commit()ted.

Author:
Mark S. Miller

Field Summary
private  Ref myOptRef
          Deprecated. Once it's done, it stops pointing at the Ref.
 
Constructor Summary
(package private) Switcher(Ref sRef)
          Deprecated. sRef should still be in a swicthable state, and this should be its only resolver.
 
Method Summary
 void __printOn(TextWriter out)
          Deprecated. Enabled:
 boolean commit()
          Deprecated. Enabled: Become done.
 boolean isDone()
          Deprecated. Enabled: @see Resolver#isDone
 void setTarget(Object target)
          Deprecated. Enabled: Queues all accumulated and future messages for delivery to target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myOptRef

private Ref myOptRef
Deprecated. 
Once it's done, it stops pointing at the Ref.

Constructor Detail

Switcher

Switcher(Ref sRef)
Deprecated. 
sRef should still be in a swicthable state, and this should be its only resolver.

Method Detail

setTarget

public void setTarget(Object target)
Deprecated. 
Enabled: Queues all accumulated and future messages for delivery to target. If isDone(), an exception is thrown instead.


isDone

public boolean isDone()
Deprecated. 
Enabled: @see Resolver#isDone


commit

public boolean commit()
Deprecated. 
Enabled: Become done. Return false is already done.


__printOn

public void __printOn(TextWriter out)
               throws IOException
Deprecated. 
Enabled:

IOException


comments?