Package org.pf4j
Class DefaultPluginDescriptor
java.lang.Object
org.pf4j.DefaultPluginDescriptor
- All Implemented Interfaces:
PluginDescriptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependency
(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 PluginDescriptor
setDependencies
(String dependencies) setLicense
(String license) protected PluginDescriptor
setPluginClass
(String pluginClassName) protected PluginDescriptor
setPluginDescription
(String pluginDescription) protected DefaultPluginDescriptor
setPluginId
(String pluginId) protected DefaultPluginDescriptor
setPluginVersion
(String version) protected PluginDescriptor
setProvider
(String provider) protected PluginDescriptor
setRequires
(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:
getPluginId
in interfacePluginDescriptor
-
getPluginDescription
Returns the description of this plugin.- Specified by:
getPluginDescription
in interfacePluginDescriptor
-
getPluginClass
Returns the name of the class that implements Plugin interface.- Specified by:
getPluginClass
in interfacePluginDescriptor
-
getVersion
Returns the version of this plugin.- Specified by:
getVersion
in interfacePluginDescriptor
-
getRequires
Returns string version of requires- Specified by:
getRequires
in interfacePluginDescriptor
- Returns:
- String with requires expression on SemVer format
-
getProvider
Returns the provider name of this plugin.- Specified by:
getProvider
in interfacePluginDescriptor
-
getLicense
Returns the legal license of this plugin, e.g. "Apache-2.0", "MIT" etc- Specified by:
getLicense
in interfacePluginDescriptor
-
getDependencies
Returns all dependencies declared by this plugin. Returns an empty array if this plugin does not declare any require.- Specified by:
getDependencies
in interfacePluginDescriptor
-
toString
-
setPluginId
-
setPluginDescription
-
setPluginClass
-
setPluginVersion
-
setProvider
-
setRequires
-
setDependencies
-
setLicense
-