Generating a Java Component Implementation

You can start the wizard for generating a Java component implementation from the canvase, from the Property view, or from the Problems view.

Procedure

  1. Choose an initial control and follow the relevant procedure.
    Control Procedure
    Properties View
    1. In the Validation Report area on the General tab of the component's Property View, click the fix... link.
    2. Select Generate Java Implementation.
    Canvas
    1. Right-click the component and select Quick Fixes > Generate Java Implementation.
    Canvas
    1. Right-click the component and select Generate Java Implementation.
    Problems View
    1. In the Problems view, right-click an error of the form Component "ComponentName" is not configured and select Quick Fixes.
    2. In the Quick Fix dialog, click Generate Java Implementation.
    3. Click Finish.
    The Generate Java Implementation dialog displays.
  2. Configure the project, package, and class details in the Implementation Classes screen.
  3. If the component has a service or reference, choose a data binding option and follow the appropriate procedure:
    Data Binding Option Procedure
    Accept Defaults A JAR containing XMLBeans data binding classes with the default options is generated.
    Configure
    1. Click Next.
    2. Configure the data binding type and Beans and interface JAR properties as described in XML Data Binding Reference.
  4. Click Finish.
    The following objects are generated:
    • A Java plug-in project containing abstract and concrete implementation classes. If the component has a service or reference, interface and data binding classes are also generated.
    • A custom feature file that references the Java plug-in in the Deployment Artifacts special folder in the SOA project. The component is configured to depend on the generated custom feature. If the component implementation depends on a data binding library plug-in, the component is configured to depend on the custom feature containing the data binding library.
    • Objects that map to the following component elements:
      • Service - An interface. If the port type is named PortType, the interface is named PortType. The clause implements PortType is added to the abstract class.
      • Reference - Field and accessor methods are added to the abstract class.
      • Property - Field and accessor methods are added to the abstract class.