2.2. Declaring your SPI.

Writing your code to extend an SPI is not all that is required for it to be discovered within Taverna. You also need to declare it as an available SPI. This is achieved by creating a file META-INF/services/<spi interface> within your packaged artifact. Using Maven this will automatically become part of your jar file if you place it in the directory src/main/resources/. So, for example if you have created a new RendererSPI you will create the file


Within this file you simply declare the fully qualified name of your new class. For example:

elvis:>cat src/main/resources/META-INF/services/org.embl.ebi.escience.scuflui.spi.RendererSPI