JBoss.orgCommunity Documentation
This appendix contains an example of the Connector Type Definition file that can be used as a template when creating a new Connector Type Definition.
<?xml version="1.0" encoding="UTF-8"?>
<ConfigurationDocument>
<Header>
<ApplicationCreatedBy>Connector Development Kit</ApplicationCreatedBy>
<ApplicationVersionCreatedBy>4.0:1681</ApplicationVersionCreatedBy>
<UserCreatedBy>MetaMatrixAdmin</UserCreatedBy>
<DocumentTypeVersion>1.0</DocumentTypeVersion>
<MetaMatrixSystemVersion>4.0</MetaMatrixSystemVersion>
<Time>2008-01-30T15:22:05.296-06:00</Time>
</Header>
<ComponentTypes>
<ComponentType Name="My Connector" ComponentTypeCode="2" Deployable="true" Deprecated="false" Monitorable="false" SuperComponentType="Connector" ParentComponentType="Connectors">
<!-- Required by Connector API -->
<ComponentTypeDefn Deprecated="false">
<PropertyDefinition Name="ConnectorClass" DisplayName="Connector Class" ShortDescription="" DefaultValue="com.mycode.Connector" IsRequired="true" IsMasked="false" IsModifiable="false" />
</ComponentTypeDefn>
<ComponentTypeDefn Deprecated="false">
<PropertyDefinition Name="ConnectorClassPath" DisplayName="Class Path" ShortDescription="" DefaultValue="extensionjar:mycode.jar" IsRequired="true" IsMasked="false" />
</ComponentTypeDefn>
<!-- Example properties - replace with custom properties -->
<ComponentTypeDefn Deprecated="false">
<PropertyDefinition Name="ExampleOptional" DisplayName="Example Optional Property" ShortDescription="This property is optional due to not being marked as IsRequired" IsMasked="false" />
</ComponentTypeDefn>
<ComponentTypeDefn Deprecated="false">
<PropertyDefinition Name="ExampleDefaultValue" DisplayName="Example Default Value Property" ShortDescription="This property has a default value" DefaultValue="Default value" IsRequired="true" IsMasked="false" />
</ComponentTypeDefn>
<ComponentTypeDefn Deprecated="false">
<PropertyDefinition Name="ExampleEncrypted" DisplayName="Example Encrypted Property" ShortDescription="This property is encrypted in storage due to Masked=true" IsRequired="true" IsMasked="true" />
</ComponentTypeDefn>
<ChangeHistory>
<Property Name="LastChangedBy">ConfigurationStartup</Property>
<Property Name="CreatedBy">ConfigurationStartup</Property>
</ChangeHistory>
</ComponentType>
</ComponentTypes>
</ConfigurationDocument>