public class Globals extends Object
| Constructor and Description |
|---|
Globals(Config config,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildAndSetTemporaryIncrementalCache()
Build and setup cache according to configuration setting.
|
Config |
getConfig() |
Cache |
getContentCache() |
com.atlassian.event.api.EventPublisher |
getEventPublisher() |
com.atlassian.plugin.event.PluginEventManager |
getPluginEventManager() |
Router |
getRouter() |
Snapshot |
getSnapshot()
Analyzes current state of the plugin system and return web resources.
|
Cache |
getTemporaryIncrementalCache() |
UrlCache |
getUrlCache() |
void |
onStateChange(com.atlassian.plugin.webresource.impl.Globals.StateChangeCallback callback)
Provided callback would be called if the state of the system changed (any plugin change event).
|
void |
triggerStateChange()
Trigger the state change event, it will notify all state change listeners.
|
public Config getConfig()
public Router getRouter()
public Cache getContentCache()
public void onStateChange(com.atlassian.plugin.webresource.impl.Globals.StateChangeCallback callback)
public void triggerStateChange()
public UrlCache getUrlCache()
public void buildAndSetTemporaryIncrementalCache()
public Cache getTemporaryIncrementalCache()
public Snapshot getSnapshot()
public com.atlassian.plugin.event.PluginEventManager getPluginEventManager()
@Nullable public com.atlassian.event.api.EventPublisher getEventPublisher()
Copyright © 2024 Atlassian. All rights reserved.