Package org.uberfire.backend.plugin
Interface PluginProcessor
-
- All Known Subinterfaces:
RuntimePluginProcessor
public interface PluginProcessorA simple marker to keep track of all plugins processors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPluginProcessor.PluginProcessorType
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static booleanisAValidPluginFileExtension(String fileName)Checks if a plugin file has the valid extensionbooleanisRegistered(String pluginName)Checks if a plugin with the given name is registered.voidprocess(String pluginName, String pluginDeploymentDir, boolean notifyClients)Processes a deployed plugin and optionally notifies clientsvoidremoveAll()Removes all plugins from this processor.booleanshouldProcess(String pluginName)Checks if this processor should process a given plugin
-
-
-
Method Detail
-
isAValidPluginFileExtension
static boolean isAValidPluginFileExtension(String fileName)
Checks if a plugin file has the valid extension- Parameters:
fileName- the file name of the plugin
-
shouldProcess
boolean shouldProcess(String pluginName)
Checks if this processor should process a given plugin- Parameters:
pluginName- the name of the plugin, must not be null.
-
removeAll
void removeAll()
Removes all plugins from this processor.
-
process
void process(String pluginName, String pluginDeploymentDir, boolean notifyClients)
Processes a deployed plugin and optionally notifies clients- Parameters:
pluginName- the name of the plugin, must not be null.pluginDeploymentDir- the directory to deploy plugin contents to, must not be null.notifyClients- trigger a event after plugin processing
-
isRegistered
boolean isRegistered(String pluginName)
Checks if a plugin with the given name is registered.- Parameters:
pluginName- the name of the plugin, must not be null.- Returns:
- true if registered, otherwise false.
-
-