You provide
product information about an extension by setting properties when you
instantiate the
Extension
object in the program that manages the extension. The product information that
you set appears in the
vSphere
Client.
The EAM Sample Solution
instantiates the
Extension data object
in the
Manager.java class.
The sample solution sets
Extension product
information properties directly in
Manager.java, but you
can set the property values in configuration files that the program that
manages the extension accesses.
Prerequisites
-
Download the vSphere ESX Agent Manager SDK.
-
Verify that you have set up
and started the EAM Sample Solution in an application server.
-
Verify that you have opened
eam_work_folder\src\com\vmware\eam\sample\solution\Manager.java
in an editor.
Procedure
-
Provide a description
for the extension by creating an instance of the
Description data object
and passing it to
Extension.
private Extension createExtensionObject() {
Extension extension = new Extension();
[...]
Description description = new Description();
description.setLabel("EAM Sample Solution");
description.setSummary("This extension provides the EAM Sample Solution.");
extension.setDescription(description);
[...]
}
-
Provide a version number
for the extension by calling the
Extension.setVersion()
method.
private Extension createExtensionObject() {
Extension extension = new Extension();
[...]
extension.setVersion("0.1");
[...]
}
- (Optional)
Change the value of the
version property in
Manager.java.
-
Provide information
about the vendor of the extension by calling the
Extension.setCompany()
method.
The EAM Sample
Solution does not set the
vendor property. You
can set it by adding the following line of code to
Manager.java.
private Extension createExtensionObject() {
Extension extension = new Extension();
[...]
extension.setVersion("0.1");
extension.setCompany("your_company");
[...]
}
-
Provide URLs to Web
pages for the product and for the vendor of the extension by creating an
instance of the
ExtExtendedProductInfo
data object and passing it to
Extension.
The EAM Sample
Solution does not set the
companyUrl property
for
ExtExtendedProductInfo.
You can set it by adding a call to to the
ExtExtendedProductInfo.setCompanyUrl()
method in
Manager.java:
private Extension createExtensionObject() {
Extension extension = new Extension();
[...]
ExtExtendedProductInfo extExtendedProductInfo = new
ExtExtendedProductInfo();
extExtendedProductInfo.setCompanyUrl("your_URL");
extExtendedProductInfo.setProductUrl("your_product_url");
extension.setExtendedProductInfo(extExtendedProductInfo);
[...]
}
- (Optional)
If you modified
Manager.java, save
your changes and rebuild and redeploy the EAM Sample Solution.
- (Optional)
View your changes in the
vSphere
Client.
If you changed the
values of the
version,
company,
companyUrl, and
productUrl
properties, your changes appear in the
Summary tab of your
solution.
Results
You provided product
information about an extension by setting properties in the
Extension and
ExtExtendedProductInfo
data objects.
What to do next
Set the extension name and
localization information.