Parameter Descriptor Element

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

A parameter element defines a template parameter. Template parameters must be declared with this element to be used in template instantiation.

This element may only appear as a child of a server-template element or a service-template element.

The following attributes are supported:

AttributeDescriptionRequired
name
The name of the parameter. For example, if index is used as the name of a parameter, it can be referenced using ${index} in the server or service template.
Yes
default
An optional default value for the parameter. This value is used if the parameter is not defined when a server or service is instantiated.
No

Here is an example to demonstrate the use of this element:

XML
<server-template id="MyServerTemplate">
<parameter name="index"/>
<parameter name="exepath" default="/opt/myapp/bin/server"/>
...
</server-template>