public class PluginDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
protected BlueprintDescriptor.Blueprint |
blueprint
Used by a previous version, kept for backwards compatibility
|
protected String |
descriptorVersion
The version of the descriptor
|
protected Plugin |
plugin
The actual metadata of the plugin
|
Constructor and Description |
---|
PluginDescriptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BlueprintDescriptor.Blueprint |
getBlueprint()
Deprecated.
|
String |
getDescriptorVersion() |
Plugin |
getPlugin() |
int |
hashCode() |
static PluginDescriptor |
of(Plugin plugin)
Wraps the plugin metadata in a descriptor object
|
void |
setBlueprint(BlueprintDescriptor.Blueprint plugin) |
void |
setDescriptorVersion(String descriptorVersion) |
void |
setPlugin(Plugin plugin) |
String |
toString() |
protected String descriptorVersion
protected Plugin plugin
protected BlueprintDescriptor.Blueprint blueprint
public String getDescriptorVersion()
public void setDescriptorVersion(String descriptorVersion)
public Plugin getPlugin()
public void setPlugin(Plugin plugin)
@Deprecated public BlueprintDescriptor.Blueprint getBlueprint()
public void setBlueprint(BlueprintDescriptor.Blueprint plugin)
public static PluginDescriptor of(Plugin plugin)
plugin
- the plugin to wrapCopyright © 2023 CrafterCMS. All rights reserved.