To add a custom query processor to Governanace Registry and the following configuration at
<queryProcessor> <processor>org.wso2.carbon.registry.samples.processor.SampleQueryProcessor</processor> <queryType>application/vnd.wso2.sample.query</queryType> </queryProcessor>
The attributes of the given above configuration can be defined as below.
- processor - The fully qualified name of the class implementing the
org.wso2.carbon.registry.core.dataaccess.QueryProcessorinterface. You can have more than one query processor having the same class.
- queryType - The media type of the query that's executed must be unique.
It is important to restart the server after a configuration change.
See also Query Processor Sample.