Regenerating a Spring 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 Spring Implementation.
    Canvas
    1. Right-click a component and select Quick Fixes > Update Spring Configuration.
    Properties View
    1. In the Validation Report area on the General tab of the component’s Properties view click the fix... link.
    2. Select Update Spring Configuration.
    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 Spring Configuration.
    3. Click Finish.
    The Spring implementation and bean configuration XML file are updated.
  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.