java.lang.Object | |
↳ | com.atlassian.plugin.manager.EnabledModuleCachingPluginAccessor |
A caching decorator which caches getEnabledModuleDescriptorsByClass(Class)
on PluginAccessor
interface.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
delegate |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the class loader responsible for loading classes and resources from plugins.
| |||||||||||
Retrieve a class from a currently loaded (and active) dynamically loaded plugin.
| |||||||||||
Retrieve a resource from a currently loaded (and active) dynamically loaded plugin.
| |||||||||||
Get all enabled module descriptors that have a specific descriptor class.
| |||||||||||
Get all enabled module descriptors that have a specific descriptor class.
| |||||||||||
Get all enabled module descriptors that have a specific descriptor type.
| |||||||||||
Retrieve all plugin modules that implement or extend a specific class.
| |||||||||||
Retrieve all plugin modules that implement or extend a specific class, and has a descriptor class
as the descriptorClazz
| |||||||||||
Retrieve all plugin modules that implement or extend a specific class, and has a descriptor class
as one of descriptorClazz
| |||||||||||
Retrieve a given plugin if it is enabled.
| |||||||||||
Retrieve an enabled plugin module by complete module key.
| |||||||||||
Get all of the currently enabled plugins.
| |||||||||||
Gets all module descriptors of installed modules that match the given predicate.
| |||||||||||
Gets all installed modules that match the given predicate.
| |||||||||||
Retrieve a given plugin (whether enabled or not).
| |||||||||||
Retrieve any plugin module by complete module key.
| |||||||||||
Retrieve a resource from a currently loaded (and active) plugin.
| |||||||||||
Gets the state of the plugin upon restart.
| |||||||||||
Gets all of the currently installed plugins.
| |||||||||||
Gets all installed plugins that match the given predicate.
| |||||||||||
Whether or not a given plugin is currently enabled.
| |||||||||||
Whether or not a given plugin module is currently enabled.
| |||||||||||
Clears the enabled module cache when any plugin is disabled.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.PluginAccessor
|
Retrieve the class loader responsible for loading classes and resources from plugins.
Retrieve a class from a currently loaded (and active) dynamically loaded plugin. Will return the first class found, so plugins with overlapping class names will behave eratically.
className | the name of the class to retrieve |
---|
ClassNotFoundException |
---|
Retrieve a resource from a currently loaded (and active) dynamically loaded plugin. Will return the first resource found, so plugins with overlapping resource names will behave eratically.
resourcePath | the path to the resource to retrieve |
---|
Get all enabled module descriptors that have a specific descriptor class.
descriptorClazz | module descriptor class |
---|
ModuleDescriptor
s that implement or extend the given class.
Get all enabled module descriptors that have a specific descriptor class.
descriptorClazz | module descriptor class |
---|---|
verbose | log verbose messages flag |
ModuleDescriptor
s that implement or extend the given class.Get all enabled module descriptors that have a specific descriptor type.
ModuleDescriptor
s that are of a given type.PluginParseException |
---|
Retrieve all plugin modules that implement or extend a specific class.
Retrieve all plugin modules that implement or extend a specific class, and has a descriptor class as the descriptorClazz
descriptorClass | @NotNull |
---|---|
moduleClass | @NotNull |
Retrieve all plugin modules that implement or extend a specific class, and has a descriptor class as one of descriptorClazz
descriptorClazz | @NotNull |
---|---|
moduleClass | @NotNull |
Retrieve a given plugin if it is enabled.
IllegalArgumentException |
---|
Retrieve an enabled plugin module by complete module key.
Get all of the currently enabled plugins.
Plugin
s.
Gets all module descriptors of installed modules that match the given predicate.
moduleDescriptorPredicate | the ModuleDescriptorPredicate to match. |
---|
ModuleDescriptor
s that match the given predicate.Gets all installed modules that match the given predicate.
moduleDescriptorPredicate | the ModuleDescriptorPredicate to match. |
---|
getModule()
that match the given predicate.Retrieve a given plugin (whether enabled or not).
key | The plugin key. Cannot be null. |
---|
IllegalArgumentException |
---|
Retrieve any plugin module by complete module key.
Note: the module may or may not be disabled.
Retrieve a resource from a currently loaded (and active) plugin. For statically loaded plugins, this just means pulling the resource from the PluginManager's classloader. For dynamically loaded plugins, this means retrieving the resource from the plugin's private classloader.
Gets the state of the plugin upon restart. Only useful for plugins that contain module descriptors with the \@RestartRequired annotation, and therefore, cannot be dynamically installed, upgraded, or removed at runtime
key | The plugin key |
---|
Gets all of the currently installed plugins.
Plugin
s.
Gets all installed plugins that match the given predicate.
pluginPredicate | the PluginPredicate to match. |
---|
Plugin
s that match the given predicate.Whether or not a given plugin is currently enabled.
IllegalArgumentException |
---|
Whether or not a given plugin module is currently enabled. This also checks if the plugin it is contained within is enabled also
Clears the enabled module cache when any plugin is disabled. The cache already has weak keys and values, but this ensures old modules are never returned from disabled plugins.
event | The plugin disabled event |
---|