Regenerating a Java Component Implementation

You should regenerate the component implementation after you add a service, reference, or property to the component or to recreate the data binding classes created by a previous version of TIBCO Business Studio. The regeneration will regenerate the abstract class, but it will not change or remove any code from the implementation class.

Prerequisites

The implementation must have been originally generated by TIBCO Business Studio.

It is possible that the implementation class will have errors after regeneration (for example when the reference has been removed and the implementation is using the reference).

If the implementation was generated with a previous version of TIBCO Business Studio, a dialog displays asking if you want to delete legacy JARs. Legacy JARs are named PortType-timestamp-service-beans.jar and PortType-timestamp-service-interface.jar.

Procedure

  1. Choose an initial control and follow the relevant procedure.
    Control Procedure
    Canvas
    1. Right-click the component and select Regenerate Java Implementation.
    Problems View
    1. In the Problems view, right-click an error of the form The component "ComponentName" is out of sync with its implementation and select Quick Fix.
    2. In the Quick Fix dialog select Update Implementation Class.
    3. Click Finish.
    Command Line
    1. Create a command-line build file and specify an sds.javait.regenerateComponent task. For example:
      <sds.javait.regenerateComponent projectName="MyProject" compositeName="MyComposite" 
      componentName="MyJavaComponent" />
    2. Run the command-line with the build file.
  2. Decide how you want to handle legacy JARs and follow the appropriate procedure.
    Legacy JARs Procedure
    Delete
    1. Click Yes.
    Retain
    1. Open the META-INF/Manifest.MF file in the component implementation's Java plug-in project.
    2. Delete the legacy JARs from the Bundle-ClassPath property.
    3. If the preceding step failed, right-click the Java project and select PDE Tools > Update classpath.
    4. If necessary, remove legacy JARs from the build properties file in the component implementation's Java plug-in project.
    5. Delete the legacy JARs from the project.
    6. Fix compilation errors if any.
    The implementation is updated to match the component.