Platonos

Back to Tutorials overview
Previous tutorial Starting the Plugin Engine

Tutorial 2 - Building a simple plugin

The minimal requirement for a plugin is define a class which is annotated with the Plugin annotation like shown below:
@Plugin(name="pluginA", version="0.1")
public class PluginA {
}
So as you can see this is very simple the only thing you have to provide is a name and the version of the plugin. The Plugin annotation has a few other attributes but those are optional. These attribute allows you to provide some info which can be displayed to the end user like displayName and provider.