|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Plugin
| Field Summary | |
|---|---|
static java.util.Comparator |
NAME_COMPARATOR
|
| Method Summary | |
|---|---|
void |
addModuleDescriptor(ModuleDescriptor moduleDescriptor)
|
void |
close()
Free any resources held by this plugin. |
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. |
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()
Whether or not this plugin can 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)
|
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 interface com.atlassian.plugin.Resourced |
|---|
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final java.util.Comparator NAME_COMPARATOR
| Method Detail |
|---|
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String getI18nNameKey()
void setI18nNameKey(java.lang.String i18nNameKey)
java.lang.String getKey()
void setKey(java.lang.String aPackage)
void addModuleDescriptor(ModuleDescriptor moduleDescriptor)
java.util.Collection getModuleDescriptors()
ModuleDescriptor getModuleDescriptor(java.lang.String key)
java.util.List getModuleDescriptorsByModuleClass(java.lang.Class aClass)
boolean isEnabledByDefault()
void setEnabledByDefault(boolean enabledByDefault)
PluginInformation getPluginInformation()
void setPluginInformation(PluginInformation pluginInformation)
void setResources(Resourced resources)
boolean isEnabled()
void setEnabled(boolean enabled)
boolean isSystemPlugin()
boolean containsSystemModule()
void setSystemPlugin(boolean system)
boolean isBundledPlugin()
java.util.Date getDateLoaded()
boolean isUninstallable()
boolean isDeleteable()
boolean isDynamicallyLoaded()
java.lang.Class loadClass(java.lang.String clazz,
java.lang.Class callingClass)
throws java.lang.ClassNotFoundException
clazz - The name of the class to be loadedcallingClass - The class calling the loading (used to help find a classloader)
java.lang.ClassNotFoundExceptionjava.io.InputStream getResourceAsStream(java.lang.String name)
name - The name of the resource to be loaded.
void close()
Plugin.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||