Package com.atlassian.plugin
Interface PluginInternal
- All Superinterfaces:
Comparable<Plugin>,Plugin,Resourced,ScopeAware
- All Known Implementing Classes:
AbstractPlugin,DefaultDynamicPlugin,StaticPlugin,UnloadablePlugin,XmlDynamicPlugin
Methods that are necessary for the plugin framework, however should not be exposed via public API.
- Since:
- v4.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDynamicModuleDescriptor(ModuleDescriptor<?> module) Add a module descriptor.booleanremoveDynamicModuleDescriptor(ModuleDescriptor<?> module) Remove a module descriptor.voidsetBundledPlugin(boolean bundledPlugin) Alters whether the plugin is a "bundled" plugin that can't be removed.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.plugin.Plugin
addModuleDescriptor, containsSystemModule, disable, enable, getActivePermissions, getClassLoader, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getDependencies, getI18nNameKey, getInstallationMode, getKey, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginArtifact, getPluginInformation, getPluginState, getPluginsVersion, getResource, getResourceAsStream, hasAllPermissions, install, isBundledPlugin, isDeleteable, isDynamicallyLoaded, isEnabledByDefault, isSystemPlugin, isUninstallable, loadClass, resolve, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginsVersion, setResources, setSystemPlugin, uninstallMethods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocationMethods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Method Details
-
setBundledPlugin
void setBundledPlugin(boolean bundledPlugin) Alters whether the plugin is a "bundled" plugin that can't be removed.- Parameters:
bundledPlugin-trueif this plugin is a "bundled" plugin.- Since:
- 4.0
-
addDynamicModuleDescriptor
Add a module descriptor.- Parameters:
module- to add- Returns:
- true if added, false if already present
- Since:
- 4.0
-
getDynamicModuleDescriptors
Iterable<ModuleDescriptor<?>> getDynamicModuleDescriptors()- Returns:
- current set of dynamic module descriptors.
- Since:
- 4.0
-
removeDynamicModuleDescriptor
Remove a module descriptor.- Parameters:
module- to remove- Returns:
- true if removed, false if not present
- Since:
- 4.0
-