|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.impl.StaticPlugin
public class StaticPlugin
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.plugin.Plugin |
|---|
NAME_COMPARATOR |
| Constructor Summary | |
|---|---|
StaticPlugin()
|
|
| Method Summary | |
|---|---|
void |
addModuleDescriptor(ModuleDescriptor moduleDescriptor)
|
void |
close()
Free any resources held by this plugin. |
int |
compareTo(java.lang.Object other)
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 |
getModuleDescriptors()
|
java.util.List |
getModuleDescriptorsByModuleClass(java.lang.Class aClass)
|
java.lang.String |
getName()
|
PluginInformation |
getPluginInformation()
|
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Load a given resource from the 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 |
isBundledPlugin()
Whether the plugin is a "bundled" plugin that can't be removed. |
boolean |
isDeleteable()
Should the plugin file be deleted on unistall? |
boolean |
isDynamicallyLoaded()
Whether or not this plugin is loaded dynamically at runtime |
boolean |
isEnabled()
|
boolean |
isEnabledByDefault()
|
boolean |
isSystemPlugin()
Whether the plugin is a "system" plugin that shouldn't be made visible to the user |
boolean |
isUninstallable()
Static plugins loaded from the classpath can't be uninstalled. |
java.lang.Class |
loadClass(java.lang.String clazz,
java.lang.Class callingClass)
Get the plugin to load a specific class. |
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 |
setResources(Resourced resources)
|
void |
setSystemPlugin(boolean system)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaticPlugin()
| 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 Pluginpublic java.util.Collection getModuleDescriptors()
getModuleDescriptors in interface Pluginpublic ModuleDescriptor getModuleDescriptor(java.lang.String key)
getModuleDescriptor in interface Pluginpublic java.util.List getModuleDescriptorsByModuleClass(java.lang.Class aClass)
getModuleDescriptorsByModuleClass in interface Pluginpublic boolean isEnabledByDefault()
isEnabledByDefault in interface Pluginpublic void setEnabledByDefault(boolean enabledByDefault)
setEnabledByDefault in interface Pluginpublic 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 Pluginenabled - public boolean isUninstallable()
isUninstallable in interface Plugin
public java.lang.Class loadClass(java.lang.String clazz,
java.lang.Class callingClass)
throws java.lang.ClassNotFoundException
Plugin
loadClass in interface Pluginclazz - The name of the class to be loadedcallingClass - The class calling the loading (used to help find a classloader)
java.lang.ClassNotFoundExceptionpublic java.io.InputStream getResourceAsStream(java.lang.String name)
Plugin
getResourceAsStream in interface Pluginname - The name of the resource to be loaded.
public boolean isDynamicallyLoaded()
Plugin
isDynamicallyLoaded in interface Pluginpublic boolean isSystemPlugin()
Plugin
isSystemPlugin in interface Pluginpublic boolean containsSystemModule()
containsSystemModule in interface Pluginpublic void setSystemPlugin(boolean system)
setSystemPlugin in interface Pluginpublic boolean isBundledPlugin()
Plugin
isBundledPlugin in interface Pluginpublic java.util.Date getDateLoaded()
Plugin
getDateLoaded in interface Pluginpublic int compareTo(java.lang.Object other)
VersionStringComparator.
If the other plugin has a different key, this method returns 1.
compareTo in interface java.lang.Comparablepublic boolean isDeleteable()
Plugin
isDeleteable in interface Pluginpublic void close()
PluginPlugin.
close in interface Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||