com.atlassian.plugin.util
Class PluginUtils
java.lang.Object
com.atlassian.plugin.util.PluginUtils
public class PluginUtils
- extends java.lang.Object
General plugin utility methods
- Since:
- 2.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATLASSIAN_DEV_MODE
public static final java.lang.String ATLASSIAN_DEV_MODE
- See Also:
- Constant Field Values
ATLASSIAN_PLUGINS_ENABLE_WAIT
public static final java.lang.String ATLASSIAN_PLUGINS_ENABLE_WAIT
- System property for storing and retrieving the time the plugin system will wait for the enabling of a plugin in
seconds
- Since:
- 2.3.6
- See Also:
- Constant Field Values
PluginUtils
public PluginUtils()
doesPluginRequireRestart
public static boolean doesPluginRequireRestart(Plugin plugin)
- Determines if a plugin requires a restart after being installed at runtime. Looks for the annotation
RequiresRestart on the plugin's module descriptors.
- Parameters:
plugin - The plugin that was just installed at runtime, but not yet enabled
- Returns:
- True if a restart is required
- Since:
- 2.1
doesModuleElementApplyToApplication
public static boolean doesModuleElementApplyToApplication(org.dom4j.Element element,
java.util.Set<java.lang.String> keys)
- Determines if a module element applies to the current application by matching the 'application' attribute
to the set of keys. If the application is specified, but isn't in the set, we return false
- Parameters:
element - The module elementkeys - The set of application keys
- Returns:
- True if it should apply, false otherwise
- Since:
- 2.2.0
getDefaultEnablingWaitPeriod
public static int getDefaultEnablingWaitPeriod()
- Returns:
- The default enabling waiting period in seconds
- Since:
- 2.3.6
Copyright © 2009 Atlassian. All Rights Reserved.