This complex property is used in binding service variables to services.
When the property is present in a set-value block but includes no
fields, it causes an automatic binding of a service variable, using
the part name of the variable as the lookup name in the deployment
descriptor file. Consider the following example:
myCustomerLookup CustomerService {@bindService};
This declares a service variable named myCustomerLookup based
on the CustomerService Service part. EGL looks for
an element in the deployment descriptor with a name field of "CustomerService"
to get binding information.
The property includes the following property field:
- bindingKey
- A string (enclosed in quotation marks) that identifies an element
in the EGL deployment descriptor file. This name overrides the part
name when EGL tries to bind a service to the variable, as in the following
example:
myCustomerLookup CustomerService {@bindService{bindingKey="CSvar2"}};
- Here EGL looks for an element in the deployment descriptor with
a name field of "CSvar2" to get binding information for myCustomerLookup.