Handler Configuration

Create a file called FetcherConfig.properties, and register your handler as follows:

$class=com.escenic.framework.datasource.FetcherConfig
fetcher.query-type=handler-path

where:

  • query-type is the name of the query type as specified in your query type definition file. For the example file shown in Creating a Query Type Definition you would enter customQuery.

  • handler-path is the path of your handler. For the skeleton example shown in Creating a Handler Class you would enter /com/mycompany/datasource/query/handler/MyQueryHandler.

Create a properties file for your class called MyQueryHandler.properties containing the following line at least:

$class=com.mycompany.datasource.query.handler.MyQueryHandler

If your class has properties that you want to set, you can of course also include these settings in the file.