Basic Component Definitions

You can use the syntax provided here to create component definitions.

When you first create your component definition file you add the main sections for the components your jar file contains. For each component you add a section where you as a minimum define Java™ class. The syntax is as follows for the three main components:
Table 1. Syntax for component sections
Component Type Minimum Section Contents
Connector
	<Folder name="Connectors">
		<Connector name="your_name">
			<Configuration>
				<parameter name="connectorType">your_javaclass_name</parameter>
			</Configuration>
		</Connector>
	</Folder>
Parser
	<Folder name="Parsers">
		<Parser name="your_name">
			<parameter name="class">your_javaclass_name</parameter>
		</Parser>
	</Folder>
Function
	<Folder name="Functions">
		<Function name="your_name">
			<Configuration>
				<parameter name="javaclass">your_javaclass_name</parameter>
			</Configuration>
		</Function>
	</Folder>
In addition you should always include a form definition for each of your components. This is to prevent the configuration editor to report errors of missing forms. If your component has no configurable parameters you should include a form that says so.
Note: The current configuration object that the Form refers to is always the connectorConfig/parserConfig/functionConfig object. If you need to access the main component's parameters you should use the "config.getParent()" method to obtain for example the ConnectorConfig interface for the configuration.