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
- Choose an initial control and follow the relevant procedure.
Control Procedure Properties View - In the Validation Report area on the General tab of the component's Property View, click the fix... link.
- Select Generate Java Implementation.
Canvas - Right-click the component and select .
Canvas - Right-click the component and select Generate Java Implementation.
Problems View - In the Problems view, right-click an error of the form Component "ComponentName" is not configured and select Quick Fixes.
- In the Quick Fix dialog, click Generate Java Implementation.
- Click Finish.
The Generate Java Implementation dialog displays. - Configure the project, package, and class details in the Generate Java Component Implementation Reference screen.
- 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 - Click Next.
- Configure the data binding type and Beans and interface JAR properties as described in XML Data Binding Reference
- 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 implementsPortType 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.