|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
com.atlassian.plugin.webresource.WebResourceModuleDescriptor
public class 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.
Field Summary |
---|
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
---|
moduleClass, moduleClassName, moduleFactory, plugin, resources, singleton |
Constructor Summary | |
---|---|
WebResourceModuleDescriptor(com.atlassian.plugin.hostcontainer.HostContainer hostContainer)
|
Method Summary | |
---|---|
void |
disabled()
|
void |
enabled()
|
Condition |
getCondition()
|
Set<String> |
getContexts()
Returns the web resource contexts this resource is associated with. |
List<String> |
getDependencies()
Returns a list of dependencies on other web resources. |
Void |
getModule()
As this descriptor just handles resources, you should never call this |
List<WebResourceTransformation> |
getTransformations()
|
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
|
boolean |
isDisableMinification()
|
boolean |
shouldDisplay()
|
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
---|
assertModuleClassImplements, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WebResourceModuleDescriptor(com.atlassian.plugin.hostcontainer.HostContainer hostContainer)
Method Detail |
---|
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.ModuleDescriptor<Void>
init
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
com.atlassian.plugin.PluginParseException
public Void getModule()
getModule
in interface com.atlassian.plugin.ModuleDescriptor<Void>
getModule
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
public void enabled()
enabled
in interface com.atlassian.plugin.StateAware
enabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
public Set<String> getContexts()
public List<String> getDependencies()
public List<WebResourceTransformation> getTransformations()
public boolean isDisableMinification()
true
if resource minification should be skipped, false
otherwise.public Condition getCondition()
getCondition
in interface ConditionalDescriptor
public boolean shouldDisplay()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |