Service Features

Introduction

Service features (not to be confused with annotation features such as methods) are the key to implementation of the extension system to allow extensions to declare a service feature to the extensions that defined the corresponding interface. Service features are used to exposed functionality so that it can be implemented in a controlled standard way a shared feature. An example of this is the Watermark feature that is used so that extensions are recognised as providing a watermark templates to the watermarking extension.

Implementation

For example an interface may be used as a feature that is declared in another extension.

image-20220916231240927

This is a function declaring the feature in this case that the extension will implement a watermark template.

This example contains code to demonstrate how to define and use a feature.