Package org.pf4j
Class PluginWrapper
java.lang.Object
org.pf4j.PluginWrapper
A wrapper over plugin instance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PluginDescriptor
(package private) Plugin
private ClassLoader
private PluginFactory
private PluginManager
private Path
private PluginState
private RuntimeMode
-
Constructor Summary
ConstructorsConstructorDescriptionPluginWrapper
(PluginManager pluginManager, PluginDescriptor descriptor, Path pluginPath, ClassLoader pluginClassLoader) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the plugin descriptor.Returns the plugin class loader used to load classes and resources for this plug-in.ShortcutReturns the plugin manager.Returns the path of this plugin.int
hashCode()
void
setPluginFactory
(PluginFactory pluginFactory) void
setPluginState
(PluginState pluginState) toString()
-
Field Details
-
pluginManager
-
descriptor
-
pluginPath
-
pluginClassLoader
-
pluginFactory
-
pluginState
-
runtimeMode
-
plugin
Plugin plugin
-
-
Constructor Details
-
PluginWrapper
public PluginWrapper(PluginManager pluginManager, PluginDescriptor descriptor, Path pluginPath, ClassLoader pluginClassLoader)
-
-
Method Details
-
getPluginManager
Returns the plugin manager. -
getDescriptor
Returns the plugin descriptor. -
getPluginPath
Returns the path of this plugin. -
getPluginClassLoader
Returns the plugin class loader used to load classes and resources for this plug-in. The class loader can be used to directly access plug-in resources and classes. -
getPlugin
-
getPluginState
-
getRuntimeMode
-
getPluginId
Shortcut -
hashCode
public int hashCode() -
equals
-
toString
-
setPluginState
-
setPluginFactory
-