Package com.atlassian.plugin.webresource
Class PluginResourceLocatorImpl
java.lang.Object
com.atlassian.plugin.webresource.PluginResourceLocatorImpl
- All Implemented Interfaces:
PluginResourceLocator
Deprecated.
since 3.3.2
Default implementation of
PluginResourceLocator.- Since:
- 2.2
-
Constructor Summary
ConstructorsConstructorDescriptionPluginResourceLocatorImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager, Config config, com.atlassian.event.api.EventPublisher eventPublisher) Deprecated.PluginResourceLocatorImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager, Globals globals) Deprecated.Added for PLUGWEB-612 as a way for anybody who created their ownGlobalsobject, via Spring or otherwise.PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager) Deprecated.PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager, StaticTransformers staticTransformers) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.plugin.servlet.DownloadableResourcegetDownloadableResource(String url, Map<String, String> queryParams) Deprecated.This method should be deleted when Confluence would be updated and stop using PluginResourceLocator.getDownloadableResource See https://ecosystem.atlassian.net/browse/PLUGWEB-193Deprecated.protected voidinitialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager, Config config, com.atlassian.event.api.EventPublisher eventPublisher) Deprecated.Initialises WRM's behaviour, creating a newGlobalsinstance using providedConfigand binding to the plugin lifecycle, so it can update and invalidate its caches as the system state changes.protected voidinitialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager, Globals globals) Deprecated.Initialises WRM's behaviour, bindingGlobalsto the plugin framework events, so it can update and invalidate its caches as the system state changes.booleanDeprecated.Returns true if this locator can parse the given url.voidonPluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event) Deprecated.voidonPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event) Deprecated.voidonPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) Deprecated.voidonPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) Deprecated.
-
Constructor Details
-
PluginResourceLocatorImpl
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager) Deprecated. -
PluginResourceLocatorImpl
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager, StaticTransformers staticTransformers) Deprecated. -
PluginResourceLocatorImpl
public PluginResourceLocatorImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager, Config config, com.atlassian.event.api.EventPublisher eventPublisher) Deprecated. -
PluginResourceLocatorImpl
public PluginResourceLocatorImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager, Globals globals) Deprecated.Added for PLUGWEB-612 as a way for anybody who created their ownGlobalsobject, via Spring or otherwise. In future, WRM's consumers should not know about nor have access toGlobalsorConfig, as they are internal implementation details. This constructor will be superceded by a more humane single entrypoint in to constructing the WRM library in PLUGWEB-619.
-
-
Method Details
-
initialize
protected void initialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager, Config config, com.atlassian.event.api.EventPublisher eventPublisher) Deprecated.Initialises WRM's behaviour, creating a newGlobalsinstance using providedConfigand binding to the plugin lifecycle, so it can update and invalidate its caches as the system state changes.- Parameters:
pluginEventManager- the plugin system in which to listen for eventsconfig- configuration for the WRM. the WRM will construct a newGlobalsobject from this, which might mean having multiple of them in your system. This would be a very bad thing, so be cautious when calling this method!
-
initialize
protected void initialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager, @Nonnull Globals globals) Deprecated.Initialises WRM's behaviour, bindingGlobalsto the plugin framework events, so it can update and invalidate its caches as the system state changes. This method will be superceded by a more humane single entrypoint in to constructing the WRM library in PLUGWEB-619. WRM's consumers should not know about nor have access toGlobalsorConfig, as they are internal implementation details. The registration and listening for plugin framework events does not belong inside this deprecated class. That responsibility will move elsewhere to a more centralised, non-deprecated location.- Parameters:
pluginEventManager- the plugin system in which to listen for eventsglobals- a pre-constructed WRM state container.
-
onPluginDisabled
public void onPluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event) Deprecated. -
onPluginEnabled
public void onPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event) Deprecated. -
onPluginModuleEnabled
public void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) Deprecated. -
onPluginModuleDisabled
public void onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) Deprecated. -
matches
Deprecated.Description copied from interface:PluginResourceLocatorReturns true if this locator can parse the given url.- Specified by:
matchesin interfacePluginResourceLocator
-
getDownloadableResource
public com.atlassian.plugin.servlet.DownloadableResource getDownloadableResource(String url, Map<String, String> queryParams) Deprecated.Description copied from interface:PluginResourceLocatorThis method should be deleted when Confluence would be updated and stop using PluginResourceLocator.getDownloadableResource See https://ecosystem.atlassian.net/browse/PLUGWEB-193Returns a
DownloadableResourcerepresented by the given url and query params.PluginResourceLocator.matches(String)should be called before invoking this method. If the url is not understood by the locator or the resource cannot be found, null will be returned.- Specified by:
getDownloadableResourcein interfacePluginResourceLocator
-
getGlobals
Deprecated.
-