|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorc.runtime.values.Value
orc.runtime.sites.Site
orc.runtime.sites.java.ObjectProxy
public class ObjectProxy
A Java object being used as an Orc Site. This allows you to get a reference to methods on the object using dot notation (like a DotSite).
Methods are assumed to be non-blocking (although they may use kilim
for cooperative threading if desired). For objects with blocking methods,
use ThreadedObjectProxy.
| Nested Class Summary | |
|---|---|
static class |
ObjectProxy.Delegate
Handle for a method (known in the .NET world as a delegate). |
static class |
ObjectProxy.DelegateCache
Find and cache delegates by name. |
| Field Summary |
|---|
| Fields inherited from class orc.runtime.values.Value |
|---|
futureNotReady |
| Constructor Summary | |
|---|---|
ObjectProxy(java.lang.Object inst)
|
|
| Method Summary | |
|---|---|
void |
callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
| Methods inherited from class orc.runtime.sites.Site |
|---|
accept, createCall |
| Methods inherited from class orc.runtime.values.Value |
|---|
forceArg, forceCall, isNone, isSome, signal, untag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectProxy(java.lang.Object inst)
| Method Detail |
|---|
public void callSite(Args args,
Token caller)
throws TokenException
Site
callSite in class Siteargs - list of argument valuescaller - where the result should be sent
TokenException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||