pnuts.lang
Interface AutoloadHook


public interface AutoloadHook

This interface defines how to find the value of a undefined variable. Instances of this interface can be registered with Package.autoload(String name, AutoloadHook loadHook, Context context).

Version:
1.1

Method Summary
 void load(java.lang.String name, Context context)
          When a registered name is first accessed and the name has not been defined, this method of a corresponding AutoloadHook object is called.
 

Method Detail

load

void load(java.lang.String name,
          Context context)
When a registered name is first accessed and the name has not been defined, this method of a corresponding AutoloadHook object is called.

Parameters:
name - the name to be defined by autoloading
context - the context with which the name is accessed.