org.erights.e.elib.ref
Class Redirector

java.lang.Object
  |
  +--org.erights.e.elib.ref.Redirector
All Implemented Interfaces:
DeadManSwitch, Marker, OneArgFunc, PassByProxy

public class Redirector
extends Object
implements DeadManSwitch, OneArgFunc, PassByProxy

Untamed: Wraps a Resolver in a way suitable for inclusion as an argument in a __whenMoreResolved message.

Turns the first response such an argument may get into a resolution of the Resolver, and then become inoperative.

Author:
Mark S. Miller

Field Summary
private  Resolver myOptResolver
           
 
Fields inherited from interface org.erights.e.elib.serial.PassByProxy
HONORARY, HONORED_NAMES
 
Constructor Summary
Redirector(Resolver resolver)
          Enabled:
 
Method Summary
 void __reactToLostClient(Throwable problem)
          Enabled: Smash the Resolver with the arg.
 Object run(Object arg)
          Enabled: Resolve the Resolver to the arg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myOptResolver

private Resolver myOptResolver
Constructor Detail

Redirector

public Redirector(Resolver resolver)
Enabled:

Method Detail

run

public Object run(Object arg)
Enabled: Resolve the Resolver to the arg.

Specified by:
run in interface OneArgFunc

__reactToLostClient

public void __reactToLostClient(Throwable problem)
Enabled: Smash the Resolver with the arg.

Specified by:
__reactToLostClient in interface DeadManSwitch
See Also:
org.erights.e.elib.prim.MirandaMethods#__reactToLostClient


comments?