xdc.services.getset
Class AutoFxn

java.lang.Object
  extended by xdc.services.getset.Fxn
      extended by xdc.services.getset.AutoFxn
All Implemented Interfaces:
org.mozilla.javascript.Callable

public class AutoFxn
extends Fxn

A Fxn that automatically determines its own inputs and outputs. Eliminates the need for client code to specify these explicitly, or even to know. Useful, for example, when the body calls other functions and doesn't want to track the details of their implementation.


Constructor Summary
AutoFxn(Group group, org.mozilla.javascript.Callable body)
          Create a new AutoFxn that will execute the given body, as scheduled by the given Group.
 
Method Summary
 
Methods inherited from class xdc.services.getset.Fxn
addInput, addOutput, call, getStale, getStatus, run, setStale, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoFxn

public AutoFxn(Group group,
               org.mozilla.javascript.Callable body)
Create a new AutoFxn that will execute the given body, as scheduled by the given Group.