Class TransactionalPluginLoader
- java.lang.Object
-
- com.atlassian.confluence.impl.plugin.TransactionalPluginLoader
-
- All Implemented Interfaces:
com.atlassian.plugin.loaders.DiscardablePluginLoader
,com.atlassian.plugin.loaders.DynamicPluginLoader
,com.atlassian.plugin.loaders.PluginLoader
@Transactional(rollbackFor=com.atlassian.plugin.PluginException.class) public class TransactionalPluginLoader extends Object implements com.atlassian.plugin.loaders.DynamicPluginLoader, com.atlassian.plugin.loaders.DiscardablePluginLoader
APluginLoader
implementation that addsTransactional
annotations.- Since:
- 7.16
- See Also:
DatabaseClassLoadingPluginLoader
-
-
Constructor Summary
Constructors Constructor Description TransactionalPluginLoader(com.atlassian.plugin.loaders.DynamicPluginLoader delegateLoader, com.atlassian.plugin.loaders.DiscardablePluginLoader delegateDiscardableLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
canLoad(com.atlassian.plugin.PluginArtifact pluginArtifact)
com.atlassian.plugin.ModuleDescriptor<?>
createModule(com.atlassian.plugin.Plugin plugin, org.dom4j.Element module, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
void
discardPlugin(com.atlassian.plugin.Plugin plugin)
boolean
isDynamicPluginLoader()
Iterable<com.atlassian.plugin.Plugin>
loadAllPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
Iterable<com.atlassian.plugin.Plugin>
loadFoundPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
void
removePlugin(com.atlassian.plugin.Plugin plugin)
boolean
supportsAddition()
boolean
supportsRemoval()
-
-
-
Method Detail
-
canLoad
public String canLoad(com.atlassian.plugin.PluginArtifact pluginArtifact)
- Specified by:
canLoad
in interfacecom.atlassian.plugin.loaders.DynamicPluginLoader
-
loadAllPlugins
@Transactional(readOnly=true) public Iterable<com.atlassian.plugin.Plugin> loadAllPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
- Specified by:
loadAllPlugins
in interfacecom.atlassian.plugin.loaders.PluginLoader
-
loadFoundPlugins
@Transactional(readOnly=true) public Iterable<com.atlassian.plugin.Plugin> loadFoundPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
- Specified by:
loadFoundPlugins
in interfacecom.atlassian.plugin.loaders.PluginLoader
-
supportsAddition
@Transactional(readOnly=true) public boolean supportsAddition()
- Specified by:
supportsAddition
in interfacecom.atlassian.plugin.loaders.PluginLoader
-
supportsRemoval
@Transactional(readOnly=true) public boolean supportsRemoval()
- Specified by:
supportsRemoval
in interfacecom.atlassian.plugin.loaders.PluginLoader
-
removePlugin
public void removePlugin(com.atlassian.plugin.Plugin plugin)
- Specified by:
removePlugin
in interfacecom.atlassian.plugin.loaders.PluginLoader
-
isDynamicPluginLoader
@Transactional(readOnly=true) public boolean isDynamicPluginLoader()
- Specified by:
isDynamicPluginLoader
in interfacecom.atlassian.plugin.loaders.PluginLoader
-
createModule
public com.atlassian.plugin.ModuleDescriptor<?> createModule(com.atlassian.plugin.Plugin plugin, org.dom4j.Element module, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
- Specified by:
createModule
in interfacecom.atlassian.plugin.loaders.PluginLoader
-
discardPlugin
public void discardPlugin(com.atlassian.plugin.Plugin plugin)
- Specified by:
discardPlugin
in interfacecom.atlassian.plugin.loaders.DiscardablePluginLoader
-
-