4.0

Table Of Contents
singleton Element
The <singleton> element creates a JavaScript scripting object as a singleton instance.
A singleton object behaves in the same way as a static Java class. Singleton objects define generic objects for
the plug-in to use, rather than defining specific instances of objects that Orchestrator accesses in the plugged-
in technology. For example, you can use a singleton object to establish the connection to the plugged-in
technology.
The <singleton> element is optional. The <singleton> element has the following attributes.
Type Value Description
script-name
JavaScript object Name of the corresponding JavaScript object. Mandatory attribute.
datasource
Java object The source Java object for this JavaScript object. Mandatory attribute.
Table 7-48. Element Hierarchy
Parent Element Child Element
<object>
None
enumerations Element
The <enumerations> element is the container for the <enumeration> elements.
The <enumerations> element is optional. The <enumerations> element has no attributes.
Table 7-49. Element Hierarchy
Parent Element Child Element
<module> <enumeration>
enumeration Element
The <enumeration> element defines common values that apply to all objects of a certain type.
If all objects of a certain type require a certain attribute, and if the range of values for that attribute is limited,
you can define the different values as enumeration entries. For example, if a type of object requires a color
attribute, and if the only available colors are red, blue, and green, you can define three enumeration entries to
define these three color values. You define entries as child elements of the enumeration element.
The <enumeration> element is optional. A plug-in can have an unlimited number of <enumeration> elements.
The <enumeration> element has the following attribute.
Type Value Description
type
Orchestrator object type Enumeration type. Mandatory attribute.
Table 7-50. Element Hierarchy
Parent Element Child Elements
<enumerations>
n
<url>
n
<description>
n
<entries>
vCenter Orchestrator Developer's Guide
244 VMware, Inc.