public static class PluginHandler.DeprecatedPlugin extends Object implements Comparable<PluginHandler.DeprecatedPlugin>
Modifier and Type | Field and Description |
---|---|
private Runnable |
migration
Code to run to perform migration, can be
null |
String |
name
Plugin name
|
String |
reason
Short explanation about deprecation, can be
null |
Constructor and Description |
---|
PluginHandler.DeprecatedPlugin(String name)
Constructs a new
DeprecatedPlugin . |
PluginHandler.DeprecatedPlugin(String name,
String reason)
Constructs a new
DeprecatedPlugin with a given reason. |
PluginHandler.DeprecatedPlugin(String name,
String reason,
Runnable migration)
Constructs a new
DeprecatedPlugin . |
public PluginHandler.DeprecatedPlugin(String name)
DeprecatedPlugin
.name
- The plugin namepublic PluginHandler.DeprecatedPlugin(String name, String reason)
DeprecatedPlugin
with a given reason.name
- The plugin namereason
- The reason about deprecationpublic PluginHandler.DeprecatedPlugin(String name, String reason, Runnable migration)
DeprecatedPlugin
.name
- The plugin namereason
- The reason about deprecationmigration
- The code to run to perform migrationpublic void migrate()
public int compareTo(PluginHandler.DeprecatedPlugin o)
compareTo
in interface Comparable<PluginHandler.DeprecatedPlugin>