Defining Dependencies Between Components
Use
Development Components (DC) are packages of business and UI functionality. Components can use one another and, therefore, depend on one another. A component can depend on any number of components, and a number of components can depend on one single component. Dependencies between DCs are not static and may change over time. A component may declare new dependencies or delete existing ones.
There are some restrictions on the types of valid dependencies that can be defined. The set of permitted DC dependencies is limited by DC types. When you use the standard Dependencies tab in the Component Properties view, only acceptable DCs are displayed.
Prerequisites
You have created more than one Development Component related to the Mobile Applications perspective.
Procedure
-
In the Development Infrastructure perspective of SAP NetWeaver Developer Studio, select the development component, whose dependencies you want to manage.
-
In the Component Properties view, choose the Dependencies tab page.
-
To declare dependency to another DC, choose the Add button.
The following table outlines the matrix of DC type dependencies that you can use.
To DC type
Mobile Java Component
Mobile Service Components
Mobile UI Components for Handhelds
Mobile Application
From DC type
Mobile Java Component
yes
yes
yes
no
Mobile Service Components
yes
yes
no
no
Mobile UI Components for Handhelds
yes
yes
yes
no
Mobile Application
yes
yes
yes
no
-
In the Adding Dependencies dialog, select the component to which you want to add a dependency.
-
Choose Next .
-
Select the DC from the list and choose Finish. The DC appears in the list of DCs required for this DC
Result
You have defined the dependencies to other DCs. Now you can reuse the functionality of the dependent component.