com.atlassian.confluence.plugin.webresource
Class DefaultConfluenceWebResourceManager
java.lang.Object
com.atlassian.plugin.webresource.WebResourceManagerImpl
com.atlassian.confluence.plugin.webresource.DefaultConfluenceWebResourceManager
- All Implemented Interfaces:
- ConfluenceWebResourceManager, com.atlassian.plugin.webresource.WebResourceManager
public class DefaultConfluenceWebResourceManager
- extends com.atlassian.plugin.webresource.WebResourceManagerImpl
- implements ConfluenceWebResourceManager
Nested classes/interfaces inherited from interface com.atlassian.plugin.webresource.WebResourceManager |
com.atlassian.plugin.webresource.WebResourceManager.IncludeMode |
Fields inherited from class com.atlassian.plugin.webresource.WebResourceManagerImpl |
pluginResourceLocator, webResourceFormatters, webResourceIntegration |
Fields inherited from interface com.atlassian.plugin.webresource.WebResourceManager |
DELAYED_INCLUDE_MODE, INLINE_INCLUDE_MODE |
Constructor Summary |
DefaultConfluenceWebResourceManager(com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator,
com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration)
|
Methods inherited from class com.atlassian.plugin.webresource.WebResourceManagerImpl |
getRequiredResources, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResourcePrefix, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, requireResource, setIncludeMode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.plugin.webresource.WebResourceManager |
getRequiredResources, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResourcePrefix, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, requireResource, setIncludeMode |
DefaultConfluenceWebResourceManager
public DefaultConfluenceWebResourceManager(com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator,
com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration)
getResources
public java.lang.String getResources()
- Description copied from interface:
ConfluenceWebResourceManager
- Returns the HTML output of
WebResourceManager.includeResources(java.io.Writer)
, which includes references to
all the delayed Javascript and CSS resources requested by WebResourceManager.requireResource(String)
.
- Specified by:
getResources
in interface ConfluenceWebResourceManager
requireResource
public void requireResource(java.lang.String resourceName)
- Wraps the parent method to provide logging.
- Specified by:
requireResource
in interface com.atlassian.plugin.webresource.WebResourceManager
- Overrides:
requireResource
in class com.atlassian.plugin.webresource.WebResourceManagerImpl
requireResourcesForContext
public void requireResourcesForContext(java.lang.String context)
- Description copied from interface:
ConfluenceWebResourceManager
- Requires all resources which have the given context specified in their descriptor
- Specified by:
requireResourcesForContext
in interface ConfluenceWebResourceManager
- Parameters:
context
- The name of the context for which you want to require resources (eg "confluence.main")
getGlobalCssResourcePrefix
public java.lang.String getGlobalCssResourcePrefix()
- Description copied from interface:
ConfluenceWebResourceManager
- Get the resource prefix for the global CSS file. This prefix should be updated every time there is a change
to the global theme or colour scheme.
- Specified by:
getGlobalCssResourcePrefix
in interface ConfluenceWebResourceManager
getSpaceCssPrefix
public java.lang.String getSpaceCssPrefix(java.lang.String spaceKey)
- Description copied from interface:
ConfluenceWebResourceManager
- Get the resource prefix for a particular space's CSS file. This prefix should be updated every time there is a
change to the space's theme or colour scheme.
- Specified by:
getSpaceCssPrefix
in interface ConfluenceWebResourceManager
- Parameters:
spaceKey
- the key of the space we're viewing the CSS for, or null for the global CSS.
getResourceContent
public java.lang.String getResourceContent(java.lang.String resourceName)
- Description copied from interface:
ConfluenceWebResourceManager
- Gets the content of a resource specified.
- Specified by:
getResourceContent
in interface ConfluenceWebResourceManager
- Parameters:
resourceName
- The fully qualified plugin name and resource to include (eg confluence.web.resources:legacy-styles
)
- Returns:
- the content of the resource
setCssResourceCounterManager
public void setCssResourceCounterManager(CssResourceCounterManager cssResourceCounterManager)
setResourceAccessor
public void setResourceAccessor(ResourceAccessor resourceAccessor)
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.