-
Notifications
You must be signed in to change notification settings - Fork 4
Adaptor Development
An adaptor is a small part of the watch component that can be used to add information to watch from a particular source.
For now, just create a child module of the scout-adaptors module. In order to implement an adaptor, you have to implement the AdaptorPluginInterface provided in the scout-model project. This dependency is already managed for you by the parent pom, you only need to state its group and artifact id in your pom.
For your convenience the parent project already has the scout-model, junit and mockito as managed dependencies. You can add new once on demand. Currently Scout will load your adaptor and all its dependencies (bundled in the jar). We will have a complete list of the libraries used so that developers can know, what is already provided and what is needed.
The assembly plugin is already provided in the parent pom. You just need to state it in your pom and run mvn assembly:assembly. This will generate a full fat jar in your target folder.
Copying the full fat jar in the scout plugins folder (defined in configuration, default is /usr/local/scout/plugins/), under the adaptors/ folder, will cause the dynamic loading of your adaptor.
TBD