Start of Content Area

Process documentation Deployment Service  Locate the document in its SAP Library structure

Purpose

The deployment service provides information that is required for the deployment of a Web Dynpro application. This service is represented by the IWDDeployableObject interface.

Deployable Units

The object of the WDDeployableObject class is a unit that can be deployed on a server like the SAP J2EE Engine. Therefore, an object of this class represents a Web Dynpro archive that contains objects of the WDDeployableObjectPart class. The name of the object of the WDDeployableObject class is identical to the name of the Web Dynpro application deployed on the SAP J2EE Engine. The WDDeployableObjectPart class can contain the following deployable Web Dynpro units:

·        Web Dynpro application

·        Web Dynpro component

·        Web Dynpro configuration

·        Component interface

·        Web resources

One object of the WDDeployableObjectPart class belongs to exactly one object of the WDDeployableObject class.

Note

You can deploy one or more Web Dynpro applications in a deployable unit.

You can access the resources of a Web Dynpro application, the application-specific configuration, or the application-specific class loader using the IWDDeployableObject interface.

Example

The following source code describes how to access the classes WDDeployableObject and WDDeployableObjectPart:

// All used classes are contained in package

// com.sap.tc.webdynpro.services.sal.deployment.api

 

// get deployable object for deployed application “Test” using factory

// class WDDeployableObject

IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject(“Test”);

 

// get the deployable object parts of the current deployable object

WDDeployableObjectPart[] allParts = deplObj.getParts();

 

// get the deployable object parts of the current deployable object, which

// represent Web Dynpro components

WDDeployableObjectParts[] componentParts =

        deplObj.getParts(WDDeployableObjectPartType.COMPONENT);

 

// get the part type of a deployable object part

for ( int i=0; i<allParts.length; i++ ) {

    WDDeployableObjectPartType type = allParts[I].getType();

    // do something

}

 

// get the deployment state of the deployable object;

// if the state is STARTED, do something

if (  deplObj.getState() == WDDeployableObjectState.STARTED ) {

    // do something

} 

  

  

 

 

End of Content Area