This documentation is for WSO2 Governance Registry 5.1.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

Query Processors are one of many well-defined extension points supported by the WSO2 Governance Registry. Read more on Supported Extension Points for a complete list of extension points supported by WSO2 Governance Registry.

To add a custom query processor to Governanace Registry and the following configuration at $GREG_HOME/repository/conf/registry.xml

<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.

  1. processor - The fully qualified name of the class implementing the org.wso2.carbon.registry.core.dataaccess.QueryProcessor interface. You can have more than one query processor having the same class.

  2. 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.

  • No labels