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 |
|---|
DeprecatedPlugin(String name)
Constructs a new
DeprecatedPlugin. |
DeprecatedPlugin(String name,
String reason)
Constructs a new
DeprecatedPlugin with a given reason. |
DeprecatedPlugin(String name,
String reason,
Runnable migration)
Constructs a new
DeprecatedPlugin. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PluginHandler.DeprecatedPlugin o) |
void |
migrate()
Performs migration.
|
public DeprecatedPlugin(String name)
DeprecatedPlugin.name - The plugin namepublic DeprecatedPlugin(String name, String reason)
DeprecatedPlugin with a given reason.name - The plugin namereason - The reason about deprecationpublic 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>