Interface DrasylPlugin

  • All Known Implementing Classes:
    AutoloadablePlugin

    public interface DrasylPlugin
    This interface is implemented by all drasyl plugins.
    • Method Detail

      • getHandler

        List<Handler> getHandler()
        This method gets called when the plugin is added to drasyl and adds the given Handlers to the corresponding Pipeline. If you want to add your Handlers manually, return an empty list.
        Returns:
        a sorted list of Handler that should be added to the Pipeline
      • name

        String name()
        The plugin name must be unique.
        Returns:
        the plugin name
      • description

        String description()
        Returns:
        a description of this plugin
      • onRemove

        void onRemove()
        This method gets called when the plugin was removed from drasyl.
      • onAdded

        void onAdded()
        This method gets called when the plugin was added to drasyl.