Control Structures

use

Supported By

Syntax

use moduleName

ModuleName yields the fully-qualified class name of a Java class that extends com.kreative.openxion.XNModule.

Description

The use statement tells the OpenXION interpreter to load the specified module. ModuleName must yield the fully-qualified Java class name of the module to load.

Note

Since the mechanism for loading modules is dependent on the XION implementation, the use statement as described here is specific to OpenXION.

Security

To load modules, OpenXION's security settings must allow the MODULE_LOAD security key. If the required security key is denied, a script error will be triggered.

See Also

include, require