public abstract class CommandWithPluginManager extends Object implements Command
Command that allows keeping PluginManager.
The PluginManager is not passed through the constructor because instances of Command are created by the args4j framework by calling the default constructor (the one without
arguments). The PluginManager is saved by calling setPluginManager(PluginManager) right after the creation of the command. Also, CLI arguments
are parsed on a single thread so we don't need to worry about concurrent access.
| Constructor and Description |
|---|
CommandWithPluginManager() |
| Modifier and Type | Method and Description |
|---|---|
org.pf4j.PluginManager |
getPluginManager() |
void |
setPluginManager(org.pf4j.PluginManager pluginManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateParsingContext, getConfigOverrides, getEventListeners, getHostPlatform, getLogConfig, getShortDescription, getTargetPlatforms, isReadOnly, isSourceControlStatsGatheringEnabled, performsBuild, printUsage, run, runHelppublic void setPluginManager(org.pf4j.PluginManager pluginManager)
setPluginManager in interface Commandpublic org.pf4j.PluginManager getPluginManager()
getPluginManager in interface Command