SysLib.getResource function

SysLib.getResource returns an object that is based on a specific entry in an EGL deployment descriptor.

Package

eglx.lang

Syntax
	static function getResource(bindingkey string const in)
                 returns(any);

static function getResource(bindingkey string const in, 
                            propertyFileName string const in)
                returns(any);
bindingKey
Name of an entry in an EGL deployment descriptor.
propertyFileName

Name of the EGL deployment descriptor, without a file extension. The name of the file that is accessed at run time includes the following suffix: -bind.xml.

If you do not specify a propertyFileName argument, its value is the name of the EGL deployment descriptor that is used at deployment time.

Example use
Here is an example:
myService IMyService?{
   @Resource{bindingKey = "myBinding",
             propertyFileName = "myDeploymentDescriptor"}};
Comments
You can update binding details at run time, as shown in “Binding an access variable dynamically.”

Compatibility

Table 1. Compatibility
Target Issue
Java No issues.
JavaScript No issues.