public class PluginUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATLASSIAN_DEV_MODE |
static 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
|
static java.lang.String |
WEBRESOURCE_DISABLE_FILE_CACHE
Used to disable the file cache should that be desired.
|
static java.lang.String |
WEBRESOURCE_FILE_CACHE_SIZE
Used to customise the size of the LRU cache for batch web resources.
|
| Constructor and Description |
|---|
PluginUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doesModuleElementApplyToApplication(org.dom4j.Element element,
java.util.Set<Application> applications,
InstallationMode installationMode)
Determines if a module element applies to the current application by matching the 'application' attribute
to the set of applications.
|
static boolean |
doesPluginRequireRestart(Plugin plugin)
Determines if a plugin requires a restart after being installed at runtime.
|
static int |
getDefaultEnablingWaitPeriod() |
static java.util.Set<java.lang.String> |
getPluginModulesThatRequireRestart(Plugin plugin)
Gets a list of all the module keys in a plugin that require restart.
|
public static final java.lang.String ATLASSIAN_DEV_MODE
public static final java.lang.String ATLASSIAN_PLUGINS_ENABLE_WAIT
public static final java.lang.String WEBRESOURCE_FILE_CACHE_SIZE
public static final java.lang.String WEBRESOURCE_DISABLE_FILE_CACHE
public static boolean doesPluginRequireRestart(Plugin plugin)
RequiresRestart on the plugin's module descriptors.plugin - The plugin that was just installed at runtime, but not yet enabledpublic static java.util.Set<java.lang.String> getPluginModulesThatRequireRestart(Plugin plugin)
RequiresRestart on the plugin's module descriptors.plugin - The pluginpublic static boolean doesModuleElementApplyToApplication(org.dom4j.Element element,
java.util.Set<Application> applications,
InstallationMode installationMode)
element - The module elementapplications - The set of application applicationspublic static int getDefaultEnablingWaitPeriod()
Copyright © 2013 Atlassian. All Rights Reserved.