Add a Solution to
vCenter
Server Extensions
vCenter
Server Extensions
You add a solution
to
vCenter
Server Extensions
by setting the
shownInSolutionManager
property in the implementation of the
Extension
data object that manages the solution.
- Verify that you have set up and started the EAM Sample Solution in an application server.
- Verify that you have openedin an editor.eam_work_folder\src\com\vmware\eam\sample\solution\Manager.java
The EAM Sample
Solution sets the
shownInSolutionManager
property in the
Manager.java
class.
- Call theExtSolutionManagerInfo()constructor to create an instance ofExtSolutionManagerInfoin the class that implementsExtension.The following lines in theManager.javaclass show how the EAM Sample Solution creates an instance ofExtSolutionManagerInfo.private Extension createExtensionObject() { Extension extension = new Extension(); [...] ExtSolutionManagerInfo extSolutionManagerInfo = new ExtSolutionManagerInfo(); [...] }
- Call thesetSolutionManagerInfo()method to set theExtSolutionManagerInfoinstance in the solution implementation.The following lines in theManager.javaclass show how the EAM Sample Solution calls thesetSolutionManagerInfo()method.private Extension createExtensionObject() { Extension extension = new Extension(); [...] ExtSolutionManagerInfo extSolutionManagerInfo = new ExtSolutionManagerInfo(); [...] extension.setSolutionManagerInfo(extSolutionManagerInfo); }
- Set the value of theshownInSolutionManagerproperty to true by calling thesetShownInSolutionManager()method on the implementation of theExtensionobject.The following lines in theManager.javaclass show how the EAM Sample Solution sets theshownInSolutionManagerproperty.private Extension createExtensionObject() { Extension extension = new Extension(); [...] ExtSolutionManagerInfo extSolutionManagerInfo = new ExtSolutionManagerInfo(); [...] extension.setSolutionManagerInfo(extSolutionManagerInfo); extension.setShownInSolutionManager(true); [...] }
You set the
shownInSolutionManager
property in the implementation of the
Extension
data object
that defines the solution. By setting the
shownInSolutionManager
property to
true
, a solution appears in
vCenter
Server Extensions
when it registers with
vCenter Server
.