Interface DrasylPlugin

All Known Implementing Classes:
GroupsClientPlugin, GroupsManagerPlugin

@UnstableApi public interface DrasylPlugin
This interface is implemented by all drasyl plugins.
Every drasyl plugin must implement a constructor with the Config as only parameter.
  • Method Details

    • onServerChannelRegistered

      default void onServerChannelRegistered(PluginEnvironment environment)
      This method gets called before the drasyl node is started.
      At this point, no communication channel is alive.
      Parameters:
      environment - the plugin environment
    • onServerChannelActive

      default void onServerChannelActive(PluginEnvironment environment)
      This method gets called after the drasyl node was started.
      Parameters:
      environment - the plugin environment
    • onServerChannelInactive

      default void onServerChannelInactive(PluginEnvironment environment)
      This method get called before the drasyl node is shut down.
      Parameters:
      environment - the plugin environment
    • onServerChannelUnregistered

      default void onServerChannelUnregistered(PluginEnvironment environment)
      This method gets called after the drasyl node was shut down.
      At this point, no communication channel is alive.
      Parameters:
      environment - the plugin environment
    • onChildChannelRegistered

      default void onChildChannelRegistered(PluginEnvironment environment)
    • onChildChannelActive

      default void onChildChannelActive(PluginEnvironment environment)
    • onChildChannelInactive

      default void onChildChannelInactive(PluginEnvironment environment)
    • onChildChannelUnregistered

      default void onChildChannelUnregistered(PluginEnvironment environment)