java.lang.Object | ||
↳ | com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T> | |
↳ | com.atlassian.plugin.webresource.WebResourceModuleDescriptor |
A way of linking to web 'resources', such as javascript or css. This allows us to include resources once on any given page, as well as ensuring that plugins can declare resources, even if they are included at the bottom of a page.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.plugin.descriptors.AbstractModuleDescriptor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the web resource contexts this resource is associated with.
| |||||||||||
Returns a list of dependencies on other web resources.
| |||||||||||
As this descriptor just handles resources, you should never call this
| |||||||||||
Initialise a module given it's parent plugin and the XML element
representing the module.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.plugin.descriptors.AbstractModuleDescriptor
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.ModuleDescriptor
| |||||||||||
From interface
com.atlassian.plugin.Resourced
| |||||||||||
From interface
com.atlassian.plugin.StateAware
|
Returns the web resource contexts this resource is associated with.
Returns a list of dependencies on other web resources.
As this descriptor just handles resources, you should never call this
Initialise a module given it's parent plugin and the XML element representing the module.
Since atlassian-plugins v2.2, you can no longer load classes from the
plugin in this method, because the OSGi bundle that they will live in is
not built yet. Load classes in the
enabled()
method instead.
plugin | The plugin that the module belongs to. Must not be null. |
---|---|
element | XML element representing the module. Must not be null. |
PluginParseException |
---|
true
if resource minification should be skipped, false
otherwise.