|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.util.PluginUtils
public class PluginUtils
General plugin utility methods
| Field Summary | |
|---|---|
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 |
DEFAULT_ATLASSIAN_PLUGINS_ENABLE_WAIT_SECONDS
The default number of seconds that a plugin should wait for its dependencies to become enabled. |
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 Summary | |
|---|---|
PluginUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATLASSIAN_DEV_MODE
public static final java.lang.String ATLASSIAN_PLUGINS_ENABLE_WAIT
DEFAULT_ATLASSIAN_PLUGINS_ENABLE_WAIT_SECONDS,
Constant Field Valuespublic static final java.lang.String DEFAULT_ATLASSIAN_PLUGINS_ENABLE_WAIT_SECONDS
ATLASSIAN_PLUGINS_ENABLE_WAIT,
Constant Field Valuespublic static final java.lang.String WEBRESOURCE_FILE_CACHE_SIZE
public static final java.lang.String WEBRESOURCE_DISABLE_FILE_CACHE
| Constructor Detail |
|---|
public PluginUtils()
| Method Detail |
|---|
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 enabled
public static java.util.Set<java.lang.String> getPluginModulesThatRequireRestart(Plugin plugin)
RequiresRestart on the plugin's module descriptors.
plugin - The plugin
public static boolean doesModuleElementApplyToApplication(org.dom4j.Element element,
java.util.Set<Application> applications,
InstallationMode installationMode)
element - The module elementapplications - The set of application applications
public static int getDefaultEnablingWaitPeriod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||