To make selected development objects of a DC visible to the outside and therefore useable by other users, you define one or several public parts for the DC. A public part defines more or less a public interface with the help of which a DC provides its functions for reuse to the outside (for other DCs).
|
You have already created a DC. |
|
You have already logged on to the DTR server. |
To create a public part for a DC, proceed as follows:
...
1. In the project structure, expand the subnode DC MetaData.
2. Open the context menu for Public Parts and choose New Public Part.
3. Define the properties of the public part.
Property |
Description |
Name |
Specifies a name for the public part. This name can be selected as required, but it must be unique within the DC. |
Purpose |
Specifies the application purpose. You can choose between the following three values: |
compilation – Choose this option whenever the objects from the public part of the DC being used are also required for compiling in the DC. Using the Component Build function, these objects are bundled together in a separate JAR archive in the DC used. |
|
assembly – Choose this option if the objects from the public part in the DC being used are to be bundled together to a larger whole, possible together with the DCs used, and then to be deployed – but not in a separate archive. The public part in this case is not required for compiling the DC used. |
|
infrastructure – This option is not of relevance for Web Dynpro DCs. It is only important for plug-in developments. |
|
Caption |
Name by which the public part will be identified in visual tools |
Description |
Optional, freely selectable text that explains the meaning of the public part |
4. Choose Finish.
The Add Files to DTR dialog box appears.
5. Choose the files that are to be added to the DTR and confirm using OK.
Now the dialog box NewActivity is displayed.
6. Assign the DTR activity.
7. Confirm your selection.
You make a corresponding entry in the Web Dynpro Explorer in the subnode DC MetaData → Public Parts.
You have created a public part for a DC project and now you can include development objects in the public part and thus make them visible to the outside. Such objects include, for example, Web Dynpro components, Web Dynpro component interfaces, models, or individual Java classes in Web Dynpro DCs.
Make sure that with each public part a separate file <public part name>.pp is created. Therefore, do not forget to check in the public part.