Defining the Server
The com.tibco.xpd.deploy.core.ServerType extension point allows you to define the type of server on which you want to deploy. In your extension, you must provide a reference to a class that implements com.tibco.xpd.deploy.model.extension.ConnectionFactory, and optionally all necessary server configuration parameters. ConnectionFactory has a createConnection method that takes a Server object and should return a connection specific to your server.
The connection to the server is represented by a class that implements the com.tibco.xpd.deploy.model.extension.Connection interface. For example:
public interface Connection extends IAdaptable { void connect(); void disconnect(); boolean isConnected(); void refreshServerContent(); Object deployModule(String url); Object performServerElementOperation(ServerElement serverElement, Operation operation); Server getServer(); }
The Connection interface has a validateModule() method that validates a module for deployment on the server. This method must be implemented. If true is returned, the module is deployed. If false is returned, the module is not deployed. Deployment extensions developed against TIBCO Business Studio Version 2.0 must be recompiled against a later version. This method must be implemented, but can return true to continue the existing behavior.