Package org.drasyl.plugin
Interface DrasylPlugin
-
public interface DrasylPlugin
This interface is implemented by all drasyl plugins.
Every drasyl plugin must implement a constructor with theConfig
as only parameter.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onAfterShutdown(PluginEnvironment environment)
This method gets called after the drasyl node was shut down.default void
onAfterStart(PluginEnvironment environment)
This method gets called after the drasyl node was started.default void
onBeforeShutdown(PluginEnvironment environment)
This method get called before the drasyl node is shut down.default void
onBeforeStart(PluginEnvironment environment)
This method gets called before the drasyl node is started.
-
-
-
Method Detail
-
onBeforeStart
default void onBeforeStart(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
-
onAfterStart
default void onAfterStart(PluginEnvironment environment)
This method gets called after the drasyl node was started.- Parameters:
environment
- the plugin environment
-
onBeforeShutdown
default void onBeforeShutdown(PluginEnvironment environment)
This method get called before the drasyl node is shut down.- Parameters:
environment
- the plugin environment
-
onAfterShutdown
default void onAfterShutdown(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
-
-