org.erights.e.elib.serial
Interface Uncaller

All Known Subinterfaces:
Loader
All Known Implementing Classes:
BaseLoader

public interface Uncaller

Safe:


Method Summary
 Object[] optUncall(Object obj)
          Enabled: Returns a description of the call that would reconstruct the argument object.
 

Method Detail

optUncall

public Object[] optUncall(Object obj)
Enabled: Returns a description of the call that would reconstruct the argument object.

The reconstructing call would proceed not with the elements of this description, but with reconstructions of the elements of this description. Return null to indicate that this Uncaller has no description to offer, in which case another one may be tried.

If a description triple is returned, the elements of this triple must not provide any further authority beyond that held by a client who already has both this Uncaller and obj. In particular, if this Uncaller is an authority-diminishing facet on a more powerful Uncaller, then this facet may chose to implements its optUncall/1 in terms of the underlying's optUncall/1. It so, it had better be very careful to re-diminish the result before returning it. See org.erights.e.meta.java.io.FileGetter#getOptWrappingUncall for a convenience to help write such wrappers.

Returns:
:nullOk([any, String, any[]]); either null or a 3-element list of
  • a receiver object whose reconstruction would receive the message
  • a String, which is the name of the message to call
  • a list of arguments, whose reconstruction are the actual arguments to the call.


comments?