Skip to content

Commit

Permalink
Issue #177: Consider resource manager when loading type descriptions
Browse files Browse the repository at this point in the history
- Rename SPI class
- Add SPI discovery file to META-INF/services (only with the 3.6.0 SPI interface, not with the legacy interfaces)
  • Loading branch information
reckart committed Nov 29, 2024
1 parent 508553a commit 2b5e86f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ruta-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@
<exclude>src/main/resources/META-INF/org.apache.uima.fit/*.txt</exclude>
<exclude>input/**</exclude> <!-- temp test data -->
<exclude>TypeSystem.xml</exclude> <!-- temp test data -->
<exclude>src/main/resources/META-INF/services/org.apache.uima.spi.JCasClassProvider</exclude>
<exclude>src/main/resources/META-INF/services/org.apache.uima.spi.TypeSystemDescriptionProvider</exclude>
<exclude>src/main/resources/META-INF/services/org.apache.uima.spi.TypeSystemProvider</exclude>
</excludes>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import org.apache.uima.spi.TypeSystemProvider_ImplBase;

public class RutaTypeSystemDescriptionProvider extends TypeSystemProvider_ImplBase {
public class RutaTypeSystemProvider extends TypeSystemProvider_ImplBase {

public RutaTypeSystemDescriptionProvider() {
public RutaTypeSystemProvider() {
setTypeSystemLocations( //
"/org/apache/uima/ruta/engine/BasicTypeSystem.xml", //
"/org/apache/uima/ruta/engine/DefaultSeederTypeSystem.xml", //
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.apache.uima.ruta.type.spi.RutaTypeSystemProvider

0 comments on commit 2b5e86f

Please sign in to comment.