Interface Proxy
access this type via: lang.Proxy (provides, requires or uses)
A component can provide this interface, and any required interface can then be wired to it. Along with lang.Morph, this can be used to create a dynamic proxy, among other things.
Functions
void init()
void construct(FunctionCall callData, Data returnValue)
void function(FunctionCall callData, Data returnValue)
void init()
This function is called whenever an object is instantiated, when that object does not have an explicitly declared constructor function.
void construct(FunctionCall callData, Data returnValue)
This function is called whenever a constructor is called against the required interface wired to this provided interface. Constructors return a boolean value which indicates whether or not the object could be successfully constructed; this return value is set within the returnValue instance, which has a single field of the type returned by the actual function call. If you do not set this value to true, construction will always fail. Note that this function is only called for interfaces which explicitly have a constructor declared.
void function(FunctionCall callData, Data returnValue)
This function is called whenever a regular function is called against the required interface wired to this provided interface. Constructors return a boolean value which indicates whether or not the object could be successfully constructed; this return value is set within the returnValue instance, which has a single field of the type returned by the actual function call.