Resource causes an annotated variable to reference an object that holds values from a specified entry in the EGL deployment descriptor.
eglx.lang
myService IMyService?{@Resource{uri = "binding:myBinding"}};
Record Resource type Annotation { targets = [elementKind.fieldMbr] } uri string; end
binding:DDEntry binding:filePath#DD_entry
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.
myService02 IMyService?{@Resource};
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.
Target | Issue |
---|---|
Java | No issues. |
JavaScript | No issues. |