@Deprecated public class PluginResourceLocatorImpl extends Object implements PluginResourceLocator
PluginResourceLocator.| Constructor and Description |
|---|
PluginResourceLocatorImpl(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 own
Globals object,
via Spring or otherwise. |
PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Deprecated.
|
PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
ResourceCompiler resourceCompiler)
Deprecated.
|
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,
ResourceCompiler resourceCompiler)
Deprecated.
|
PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider,
ResourceBatchingConfiguration batchingConfiguration,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
StaticTransformers staticTransformers)
Deprecated.
|
PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider,
ResourceBatchingConfiguration batchingConfiguration,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
StaticTransformers staticTransformers,
ResourceCompiler resourceCompiler)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.plugin.servlet.DownloadableResource |
getDownloadableResource(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-193
|
protected void |
initialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
Config config,
com.atlassian.event.api.EventPublisher eventPublisher)
Deprecated.
Initialises WRM's behaviour, creating a new
Globals instance using provided Config
and binding to the plugin lifecycle, so it can update and invalidate its caches as the system
state changes. |
protected void |
initialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
Globals globals)
Deprecated.
Initialises WRM's behaviour, binding
Globals to the plugin framework events, so it can
update and invalidate its caches as the system state changes. |
boolean |
matches(String url)
Deprecated.
Returns true if this locator can parse the given url.
|
void |
onPluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event)
Deprecated.
|
void |
onPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event)
Deprecated.
|
void |
onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
Deprecated.
|
void |
onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
Deprecated.
|
Globals |
temporaryWayToGetGlobalsDoNotUseIt()
Deprecated.
Temporary, would be removed in future, currently needed as a way to pass some variables into places where
they are needed.
|
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.event.PluginEventManager pluginEventManager, ResourceCompiler resourceCompiler)
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager, ResourceCompiler resourceCompiler)
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager, StaticTransformers staticTransformers, ResourceCompiler resourceCompiler)
public PluginResourceLocatorImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
Config config,
com.atlassian.event.api.EventPublisher eventPublisher)
public PluginResourceLocatorImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
Globals globals)
Globals object,
via Spring or otherwise. In future, WRM's consumers should not know about nor have access to
Globals or Config, 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.public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration, com.atlassian.plugin.event.PluginEventManager pluginEventManager, StaticTransformers staticTransformers)
protected void initialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
Config config,
com.atlassian.event.api.EventPublisher eventPublisher)
Globals instance using provided Config
and binding to the plugin lifecycle, so it can update and invalidate its caches as the system
state changes.pluginEventManager - the plugin system in which to listen for eventsconfig - configuration for the WRM. the WRM will construct a new Globals object 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!protected void initialize(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
@Nonnull
Globals globals)
Globals to 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 to
Globals or Config, 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.pluginEventManager - the plugin system in which to listen for eventsglobals - a pre-constructed WRM state container.public void onPluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event)
public void onPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event)
public void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
public boolean matches(String url)
PluginResourceLocatormatches in interface PluginResourceLocatorpublic com.atlassian.plugin.servlet.DownloadableResource getDownloadableResource(String url, Map<String,String> queryParams)
PluginResourceLocator
Returns a DownloadableResource represented 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.
getDownloadableResource in interface PluginResourceLocatorpublic Globals temporaryWayToGetGlobalsDoNotUseIt()
PluginResourceLocatortemporaryWayToGetGlobalsDoNotUseIt in interface PluginResourceLocatorCopyright © 2024 Atlassian. All rights reserved.