|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.impl.AbstractPlugin
public abstract class AbstractPlugin
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.plugin.Plugin |
|---|
NAME_COMPARATOR |
| Constructor Summary | |
|---|---|
AbstractPlugin()
|
|
| Method Summary | ||
|---|---|---|
void |
addModuleDescriptor(ModuleDescriptor<?> moduleDescriptor)
|
|
int |
compareTo(Plugin otherPlugin)
Plugins with the same key are compared by version number, using VersionStringComparator. |
|
boolean |
containsSystemModule()
|
|
java.util.Date |
getDateLoaded()
The date this plugin was loaded into the system. |
|
java.lang.String |
getI18nNameKey()
|
|
java.lang.String |
getKey()
|
|
ModuleDescriptor<?> |
getModuleDescriptor(java.lang.String key)
|
|
java.util.Collection<ModuleDescriptor<?>> |
getModuleDescriptors()
Returns a copy of the module descriptors for this plugin |
|
|
getModuleDescriptorsByModuleClass(java.lang.Class<T> aClass)
|
|
java.lang.String |
getName()
|
|
PluginInformation |
getPluginInformation()
|
|
int |
getPluginsVersion()
Gets the version of the plugins system to handle this plugin |
|
ResourceDescriptor |
getResourceDescriptor(java.lang.String type,
java.lang.String name)
Deprecated. |
|
java.util.List |
getResourceDescriptors()
|
|
java.util.List |
getResourceDescriptors(java.lang.String type)
|
|
ResourceLocation |
getResourceLocation(java.lang.String type,
java.lang.String name)
|
|
boolean |
isEnabled()
|
|
boolean |
isEnabledByDefault()
|
|
boolean |
isSystemPlugin()
Whether the plugin is a "system" plugin that shouldn't be made visible to the user |
|
protected void |
removeModuleDescriptor(java.lang.String key)
|
|
void |
setEnabled(boolean enabled)
Setter for the enabled state of a plugin. |
|
void |
setEnabledByDefault(boolean enabledByDefault)
|
|
void |
setI18nNameKey(java.lang.String i18nNameKey)
|
|
void |
setKey(java.lang.String aPackage)
|
|
void |
setName(java.lang.String name)
|
|
void |
setPluginInformation(PluginInformation pluginInformation)
|
|
void |
setPluginsVersion(int pluginsVersion)
Sets the version of the plugins system |
|
void |
setResources(Resourced resources)
|
|
void |
setSystemPlugin(boolean system)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.plugin.Plugin |
|---|
close, getClassLoader, getResource, getResourceAsStream, isBundledPlugin, isDeleteable, isDynamicallyLoaded, isUninstallable, loadClass |
| Constructor Detail |
|---|
public AbstractPlugin()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface Pluginpublic void setName(java.lang.String name)
setName in interface Pluginpublic java.lang.String getI18nNameKey()
getI18nNameKey in interface Pluginpublic void setI18nNameKey(java.lang.String i18nNameKey)
setI18nNameKey in interface Pluginpublic java.lang.String getKey()
getKey in interface Pluginpublic void setKey(java.lang.String aPackage)
setKey in interface Pluginpublic void addModuleDescriptor(ModuleDescriptor<?> moduleDescriptor)
addModuleDescriptor in interface Pluginprotected void removeModuleDescriptor(java.lang.String key)
public java.util.Collection<ModuleDescriptor<?>> getModuleDescriptors()
getModuleDescriptors in interface Pluginpublic ModuleDescriptor<?> getModuleDescriptor(java.lang.String key)
getModuleDescriptor in interface Pluginpublic <T> java.util.List<ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(java.lang.Class<T> aClass)
getModuleDescriptorsByModuleClass in interface Pluginpublic boolean isEnabledByDefault()
isEnabledByDefault in interface Pluginpublic void setEnabledByDefault(boolean enabledByDefault)
setEnabledByDefault in interface Pluginpublic int getPluginsVersion()
Plugin
getPluginsVersion in interface Pluginpublic void setPluginsVersion(int pluginsVersion)
Plugin
setPluginsVersion in interface PluginpluginsVersion - The versionpublic PluginInformation getPluginInformation()
getPluginInformation in interface Pluginpublic void setPluginInformation(PluginInformation pluginInformation)
setPluginInformation in interface Pluginpublic void setResources(Resourced resources)
setResources in interface Pluginpublic java.util.List getResourceDescriptors()
getResourceDescriptors in interface Resourcedpublic java.util.List getResourceDescriptors(java.lang.String type)
getResourceDescriptors in interface Resourced
public ResourceLocation getResourceLocation(java.lang.String type,
java.lang.String name)
getResourceLocation in interface Resourced
public ResourceDescriptor getResourceDescriptor(java.lang.String type,
java.lang.String name)
getResourceDescriptor in interface Resourcedpublic boolean isEnabled()
isEnabled in interface Pluginpublic void setEnabled(boolean enabled)
setEnabled in interface Pluginpublic boolean isSystemPlugin()
Plugin
isSystemPlugin in interface Pluginpublic boolean containsSystemModule()
containsSystemModule in interface Pluginpublic void setSystemPlugin(boolean system)
setSystemPlugin in interface Pluginpublic java.util.Date getDateLoaded()
Plugin
getDateLoaded in interface Pluginpublic int compareTo(Plugin otherPlugin)
VersionStringComparator.
If the other plugin has a different key, this method returns 1.
compareTo in interface java.lang.Comparable<Plugin>public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||