Class DefaultPluginDescriptor
java.lang.Object
org.pf4j.DefaultPluginDescriptor
- All Implemented Interfaces:
PluginDescriptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(PluginDependency dependency) Returns all dependencies declared by this plugin.Returns the legal license of this plugin, e.g.Returns the name of the class that implements Plugin interface.Returns the description of this plugin.Returns the unique identifier of this plugin.Returns the provider name of this plugin.Returns string version of requiresReturns the version of this plugin.protected PluginDescriptorsetDependencies(String dependencies) setLicense(String license) protected PluginDescriptorsetPluginClass(String pluginClassName) protected PluginDescriptorsetPluginDescription(String pluginDescription) protected DefaultPluginDescriptorsetPluginId(String pluginId) protected DefaultPluginDescriptorsetPluginVersion(String version) protected PluginDescriptorsetProvider(String provider) protected PluginDescriptorsetRequires(String requires) toString()
-
Field Details
-
pluginId
-
pluginDescription
-
pluginClass
-
version
-
requires
-
provider
-
dependencies
-
license
-
-
Constructor Details
-
DefaultPluginDescriptor
public DefaultPluginDescriptor() -
DefaultPluginDescriptor
-
-
Method Details
-
addDependency
-
getPluginId
Returns the unique identifier of this plugin.- Specified by:
getPluginIdin interfacePluginDescriptor
-
getPluginDescription
Returns the description of this plugin.- Specified by:
getPluginDescriptionin interfacePluginDescriptor
-
getPluginClass
Returns the name of the class that implements Plugin interface.- Specified by:
getPluginClassin interfacePluginDescriptor
-
getVersion
Returns the version of this plugin.- Specified by:
getVersionin interfacePluginDescriptor
-
getRequires
Returns string version of requires- Specified by:
getRequiresin interfacePluginDescriptor- Returns:
- String with requires expression on SemVer format
-
getProvider
Returns the provider name of this plugin.- Specified by:
getProviderin interfacePluginDescriptor
-
getLicense
Returns the legal license of this plugin, e.g. "Apache-2.0", "MIT" etc- Specified by:
getLicensein interfacePluginDescriptor
-
getDependencies
Returns all dependencies declared by this plugin. Returns an empty array if this plugin does not declare any require.- Specified by:
getDependenciesin interfacePluginDescriptor
-
toString
-
setPluginId
-
setPluginDescription
-
setPluginClass
-
setPluginVersion
-
setProvider
-
setRequires
-
setDependencies
-
setLicense
-