Class PluginMonitor
java.lang.Object
org.jivesoftware.openfire.container.PluginMonitor
- All Implemented Interfaces:
PropertyEventListener
A service that monitors the plugin directory for plugins. It periodically checks for new plugin JAR files and
extracts them if they haven't already been extracted. Then, any new plugin directories are loaded, using the
PluginManager.
- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
propertyDeleted
(String property, Map<String, Object> params) A property was deleted.void
propertySet
(String property, Map<String, Object> params) A property was set.void
runNow
(boolean blockUntilDone) Immediately run a check of the plugin directory.void
start()
Initialize the monitor.void
Start periodically checking the plugin directory.void
stop()
Shutdown the monitor.void
Stop periodically checking the plugin directory.void
xmlPropertyDeleted
(String property, Map<String, Object> params) An XML property was deleted.void
xmlPropertySet
(String property, Map<String, Object> params) An XML property was set.
-
Constructor Details
-
PluginMonitor
-
-
Method Details
-
start
public void start()Initialize the monitor. -
startMonitoring
public void startMonitoring()Start periodically checking the plugin directory. -
stop
public void stop()Shutdown the monitor. -
stopMonitoring
public void stopMonitoring()Stop periodically checking the plugin directory. -
isTaskRunning
public boolean isTaskRunning() -
runNow
public void runNow(boolean blockUntilDone) Immediately run a check of the plugin directory.- Parameters:
blockUntilDone
- {code true} to wait until the check is complete, otherwisefalse
-
propertySet
Description copied from interface:PropertyEventListener
A property was set. The parameter mapparams
will contain the the value of the property under the keyvalue
.- Specified by:
propertySet
in interfacePropertyEventListener
- Parameters:
property
- the name of the property.params
- event parameters.
-
propertyDeleted
Description copied from interface:PropertyEventListener
A property was deleted.- Specified by:
propertyDeleted
in interfacePropertyEventListener
- Parameters:
property
- the name of the property deleted.params
- event parameters.
-
xmlPropertySet
Description copied from interface:PropertyEventListener
An XML property was set. The parameter mapparams
will contain the the value of the property under the keyvalue
.- Specified by:
xmlPropertySet
in interfacePropertyEventListener
- Parameters:
property
- the name of the property.params
- event parameters.
-
xmlPropertyDeleted
Description copied from interface:PropertyEventListener
An XML property was deleted.- Specified by:
xmlPropertyDeleted
in interfacePropertyEventListener
- Parameters:
property
- the name of the property.params
- event parameters.
-