Previous topic  Top  Next topic  Print this Topic
 

Extensions Directory for Deploying Rewriters

 

To add one or multiple rewriters to OntoBroker, you need to publish a IRewriterProvider service.

package com.ontoprise.api.rewriter;

 

public interface RewriterProvider {

  List<RewriterSpec> getRewriterSpecs();

}

The procedure is analog to the above description for the builtin JAR file. Only the declarative service definition file is shown here.

OSGI-INF/component.xml

<?xml version="1.0" encoding="UTF-8"?>

<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="com.acme.myrewriters">

  <implementation class="mypackage.MyRewritersProvider"/>

  <service>

    <provide interface="com.ontoprise.api.rewriter.RewriterProvider"/>

  </service>

</scr:component>