Resources.getResource function

Resources.getResource returns an object that is external to your code. At this writing, the object is always based on a binding entry that is defined in an EGL deployment descriptor.

Package

eglx.lang

Syntax
	static function getResource(uri string const in)
                 returns(any);
uri
The resource being referenced. At this writing, you have two options:
binding:DDEntry
binding:filePath#DD_entry
DDEntry
Name of an entry in an EGL deployment descriptor.
fileName
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 specify only DDEntry, the referenced file is the one that is currently in use. At development time, the one currently in use is identified in the following project property: Development Deployment Descriptor. At deployment time, the referenced deployment descriptor is the one that you deploy.

Example use
Here is an example:
myService MyInterfacePart?;
myService = Resources.getResource("binding:MyEnglishBinding");
Comments
The format of the uri parameter is consistent with the Internet Engineering Task Force standard that is described here: RTC 3986 (http://www.ietf.org/rfc/rfc3986.txt).

For further details on the EGL technology, see Resource bindings.

Compatibility

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