4.0

Table Of Contents
Table 7-8. Solar System JavaScript API Mappings (Continued)
Scripting Class Source Class Attributes Methods
Star
Star, defined by application
n
id
n
name
n
circumferen
ce
n
temperature
n
addPlanet(planet)
n
removePlanet(planet
)
Planet
Planet, defined by application
n
id
n
name
n
circumferen
ce
n
gravity
n
starId
n
addMoon(moon)
n
removeMoon(moon)
Moon
Moon, defined by application
n
id
n
name
n
volume
n
planetId
None
Create the Plug-In DAR Archive
The final stage in the creation of a plug-in is to create the DAR archive that you import to Orchestrator.
The DAR archive is a standard ZIP file that you rename to .dar. The DAR archive contains all of the elements
of the plug-in implementation and must adhere to a standard file and folder structure.
NOTE The source files of the solar system example application and solar system plug-in are provided for
reference purposes, so that you can see the details of the application that the solar system plug-in exposes and
of the plug-in implementation. If you import the ready-made vmware-vmosdk-solarsystem.dar file to
Orchestrator, you do not need to build solar system application code or build the plug-in from the sources.
However, if you adapt the code of the solar system application or the solar system plug-in, you can rebuild
the application and the DAR file to incorporate your adaptations. See “Build the Solar System Application and
Plug-In,” on page 210.
Prerequisites
n
Implement the plug-in adapter and factory interfaces.
n
Implement the configuration adapter interface and create the configuration Web application.
n
Map the application to Orchestrator objects in the vso.xml file.
Procedure
1 Create a working directory in which to create the DAR archive.
For example, create a directory named plugin_name.
2 Create a directory named VSO-INF at the root of the working directory.
3 Copy the vso.xml file to VSO-INF.
4 Create a directory named lib at the root of the working directory.
5 Add the JAR files containing the classes of the application to plug in and the classes of the plug-in adapter
and factory implementations to lib.
6 (Optional) Create a directory named webapps at the root of the working directory.
The webapps contains the WAR file of the configuration tab Web application.
Chapter 7 Developing Plug-Ins
VMware, Inc. 209