Config.hx

Summary
Config.hx
ModuleInfoContainer for storing information about loaded modules
Variables
versionVersion string of the module.
moduleModule instance
ConfigConfiguration and module management class.
Functions
newConstructor.
loadLoads configuration file.
getModuleReturns the module instance for the given namespace URI.
getModuleUriReturns the namespace URI for a given module name.
initModuleInitializes the module for the given namespace URI.
initAllModulesInitializes all module instances requested so far.
modulesReturns an iterator over module URIs.

ModuleInfo

Container for storing information about loaded modules

Summary
Variables
versionVersion string of the module.
moduleModule instance

Variables

version

var version: String

Version string of the module.

module

var module: SamHaXeModule

Module instance

Config

Configuration and module management class.

Summary
Functions
newConstructor.
loadLoads configuration file.
getModuleReturns the module instance for the given namespace URI.
getModuleUriReturns the namespace URI for a given module name.
initModuleInitializes the module for the given namespace URI.
initAllModulesInitializes all module instances requested so far.
modulesReturns an iterator over module URIs.

Functions

new

public function new(supported_versions: Array<String>,
moduleServices : String -> Dynamic)

Constructor.

Parameters

supported_versionsThe array of modules interface version strings SamHaXe supports.
moduleServicesThe function which returns the appropriate module interface for a version string.

load

public function load(config_file: String)

Loads configuration file.

Parameters

config_fileThe name and path of config file.

getModule

public function getModule(uri: String): SamHaXeModule

Returns the module instance for the given namespace URI.  If the given module doesn’t loaded yet or loaded but with different version, then creates a new istance.

Parameters

uriThe namespace URI

Returns

The module instance.

getModuleUri

public function getModuleUri(module_name: String): String

Returns the namespace URI for a given module name.

Parameters

module_nameThe name of the module.

Returns

The namespace URI.

initModule

public function initModule(uri: String)

Initializes the module for the given namespace URI.

Parameters

uriThe namespace URI for the module.

initAllModules

public function initAllModules()

Initializes all module instances requested so far.

modules

public function modules(): Iterator<String>

Returns an iterator over module URIs.

Returns

An iterator over module URIs.

var version: String
Version string of the module.
var module: SamHaXeModule
Module instance
public function new(supported_versions: Array<String>,
moduleServices : String -> Dynamic)
Constructor.
public function load(config_file: String)
Loads configuration file.
public function getModule(uri: String): SamHaXeModule
Returns the module instance for the given namespace URI.
public function getModuleUri(module_name: String): String
Returns the namespace URI for a given module name.
public function initModule(uri: String)
Initializes the module for the given namespace URI.
public function initAllModules()
Initializes all module instances requested so far.
public function modules(): Iterator<String>
Returns an iterator over module URIs.
Close