public class PluginUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATLASSIAN_DEV_MODE |
static 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 String |
DEFAULT_ATLASSIAN_PLUGINS_ENABLE_WAIT_SECONDS
The default number of seconds that a plugin should wait for its dependencies to become enabled.
|
static String |
WEBRESOURCE_DISABLE_FILE_CACHE
Used to disable the file cache should that be desired.
|
static 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,
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 Set<String> |
getPluginModulesThatRequireRestart(Plugin plugin)
Gets a list of all the module keys in a plugin that require restart.
|
static boolean |
isAtlassianDevMode() |
public static final String ATLASSIAN_DEV_MODE
public static final String ATLASSIAN_PLUGINS_ENABLE_WAIT
DEFAULT_ATLASSIAN_PLUGINS_ENABLE_WAIT_SECONDS,
Constant Field Valuespublic static final String DEFAULT_ATLASSIAN_PLUGINS_ENABLE_WAIT_SECONDS
ATLASSIAN_PLUGINS_ENABLE_WAIT,
Constant Field Valuespublic static final String WEBRESOURCE_FILE_CACHE_SIZE
public static final 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 Set<String> getPluginModulesThatRequireRestart(Plugin plugin)
RequiresRestart on the plugin's module descriptors.plugin - The pluginpublic static boolean doesModuleElementApplyToApplication(org.dom4j.Element element,
Set<Application> applications,
InstallationMode installationMode)
element - The module elementapplications - The set of application applicationspublic static int getDefaultEnablingWaitPeriod()
public static boolean isAtlassianDevMode()
Copyright © 2019 Atlassian. All rights reserved.