Make Java Services
Available to the UI Components in the
vSphere Web
Client and the
vSphere
Client
To make a custom
Java service available to your extension components in the
vSphere Web
Client and the
vSphere
Client,
complete the following tasks.
Procedure
1
Create a Java
interface for the service.
2
Create a Java class that
implements the interface in Step 1.
3
Add the service to the
Virgo server framework.
You must export and
expose the service to the framework by adding it as a
bean in
the Spring configuration Virgo server.
4
Import the service
where your extension references it.
■
For Flex-based
extensions, import the service into the user interface plug-in module that
contains your Flex components.
■
For HTML-based
extensions, import the service in the controller module that services your
extension data requests.
5
Establish a
communication between your service and the user interface layer.
■
For Flex-based
extensions, use ActionScript to create a proxy class in your Flex component.
The proxy class is used to communicate between the user interface plug-in
module and the service.
■
HTML-based
extensions access the service by using a REST API that communicates with the
controller module on the Virgo server.