Teiid Designer Connector Classpath Property Editor

When a connector is selected in the Connectors View, its properties are shown in the Properties View. The Properties View shows the display name and current value of each property and, if the property is editable, allows you to change a property's value. The classpath is one of the connector properties and has a display name of Class Path. A classpath value is a semicolon-delimited, ordered list of JAR files required by the connector. Whenever this connector is used, these JAR files are searched, from first to last, looking for a specific Java class file that provides connector functionality.

 

The Classpath Property Editor helps you edit the classpath value. When you click on the classpath property in the Properties View a button is displayed alongside the current value. Pressing this button displays the Classpath Property Editor.

 

Screenshot.png.jpg

 

The editor consists of the following:

 

  1. Message area - instructions that include the name of the connector being edited.
  2. Classpath JAR List - the ordered list of JARs the classpath will be set to if the OK button is pressed.
  3. Add button - allows you to add JARs from the file system.
    • JAR names are unique. So if you add a JAR with a name that is already in use, it replaces the current one. A confirmation dialog is shown whenever this occurs as this may cause changes in existing connector behaviour.
    • JARs added from the file system can then be added to the classpath of other connectors though this is not a common practice.
  4. Up button - moves the selected JARs up one position on the class path. This button is enabled when one or more JARs are selected and none of them is the first JAR in the list.
  5. Down button - moves the selected JARs down one position on the classpath. This button is enabled when one or more JARs are selected and none of them is the last JAR in the list.
  6. Remove button - removes the selected JARs from the classpath. This button is enabled if one or more JARs are selected.
    • After the OK button is pressed, JARs removed that are not needed by other connectors are no longer available when the Advanced button is pressed.
  7. Advanced button - allows you to include JARs used by other connectors. This button is enabled when one or more JARs being used by other connectors are not on this classpath.
    • Note: Sharing JARs among connectors is not a common practice.
  8. Reset button - sets the classpath back to the original value when the editor was first displayed.
  9. OK button - closes the editor changing the classpath property value to the displayed JARs.
    • The semicolon delimiters are automatically inserted when more than one JAR is included.
  10. Cancel button - closes the editor keeping the original classpath value unchanged.