I have added support for plug in query processors to the Registry. Pluggable query processors should extend from the org.wso2.registry.jdbc.queries.QueryProcessor class. Then such query processor implementations have to be configured in the registry.xml file with a query type (e.g. sql, registry-query-language).

Once a query of a registered type is executed, its associated query processor will be invoked with the query parameters. Then it is up to the query processor impl to perform all the tasks for executing the query and return the results as a resource (probably as a collection resource). By using this method, we can easily add support for other query types like XQuery or registry specific simple query language.

Pluggable query processors can be used with the combination of pluggable URL handlers to achieve more advance functionality. User can write a query processor to return the results as collection resource, which contains custom URLs. Then he can write a URL handler to interpret those URLs and construct meaningful resources.

Thanks,
Chathura

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to