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
-
Create a Java
interface for the service.
-
Create a Java class that
implements the interface in Step 1.
-
Add the service to the application
server framework.
You must export and expose the
service to the framework by adding it as a bean in the Spring
configuration application server.
-
Import the service
where your extension references it.
-
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
application server.