Configuring Dependencies on External Java Classes

Java and Spring component implementations can use Java classes contained in a library plug-in project in the same workspace as the component implementation. You must configure the dependency in both the component implementation and component.

Procedure

  1. Expand the META-INF directory of plug-in project containing the component implementation.
  2. Double-click MANIFEST.MF.
    The manifest opens in the manifest editor.
  3. Click the Dependencies tab.
  4. Follow the appropriate procedure based on the dependency type.
    Dependency Type Procedure
    Plug-in
    1. Click Add... to the right of the Required Plug-ins table.
    2. Select the plug-in containing the referenced class.
    3. Click OK.

      For example, if you reference a temperature conversion plug-in in a Java component implementation, add tempconversion.jv as a required plug-in:


    Package
    1. Click Add... to the right of the Imported Packages table.
    2. Click the referenced package.
    3. Click OK.

      For example, if you reference a logging class in a Java component implementation, add org.slf4j as an imported package:


  5. If the library plug-in will be packaged and deployed separately from the component implementation:
    1. Open the composite.
    2. Click the Java component.
    3. In the Properties view, click the Implementation tab.
    4. Uncheck the Package Implementation Bundle with Application and Compute Feature Dependencies checkboxes.
      The Features Dependencies table displays.
    5. In the Feature Dependencies table, click the feature that contains the library plug-in.
    6. Relax value of the version as described in External Library Dependencies.