|
||||||||||
| 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.lang.ClassLoader |
getClassLoader()
Get the classloader for the plugin. |
|
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()
|
|
|
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 |
|
java.net.URL |
getResource(java.lang.String path)
Retrieve the URL of the resource from the plugin. |
|
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 |
setPluginsVersion(int version)
Sets the version of the plugins system |
|
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 |
|---|
int getPluginsVersion()
void setPluginsVersion(int version)
version - The versionjava.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<ModuleDescriptor<?>> getModuleDescriptors()
ModuleDescriptor<?> getModuleDescriptor(java.lang.String key)
<T> java.util.List<ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(java.lang.Class<T> 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.lang.ClassLoader getClassLoader()
java.net.URL getResource(java.lang.String path)
path - the name of the resource to be loaded
java.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 | |||||||||