Package com.atlassian.confluence.plugin
Class DatabasePluginScanner
- java.lang.Object
-
- com.atlassian.confluence.plugin.DatabasePluginScanner
-
- All Implemented Interfaces:
com.atlassian.plugin.loaders.classloading.Scanner
public class DatabasePluginScanner extends Object implements com.atlassian.plugin.loaders.classloading.Scanner
Scans the database for plugin data.
-
-
Constructor Summary
Constructors Modifier Constructor Description DatabasePluginScanner(PluginDataDao pluginDataDao, File workDir, TenantRegistry tenantRegistry, TransactionalHostContextAccessor hostContextAccessor)
protected
DatabasePluginScanner(PluginDataDao pluginDataDao, File workDir, TenantRegistry tenantRegistry, TransactionalHostContextAccessor hostContextAccessor, Supplier<Boolean> isDatabaseConfigured)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<com.atlassian.plugin.loaders.classloading.DeploymentUnit>
getDeploymentUnits()
void
remove(com.atlassian.plugin.loaders.classloading.DeploymentUnit deploymentUnit)
void
reset()
Collection<com.atlassian.plugin.loaders.classloading.DeploymentUnit>
scan()
-
-
-
Constructor Detail
-
DatabasePluginScanner
public DatabasePluginScanner(PluginDataDao pluginDataDao, File workDir, TenantRegistry tenantRegistry, TransactionalHostContextAccessor hostContextAccessor)
-
DatabasePluginScanner
protected DatabasePluginScanner(PluginDataDao pluginDataDao, File workDir, TenantRegistry tenantRegistry, TransactionalHostContextAccessor hostContextAccessor, Supplier<Boolean> isDatabaseConfigured)
-
-
Method Detail
-
scan
public Collection<com.atlassian.plugin.loaders.classloading.DeploymentUnit> scan()
- Specified by:
scan
in interfacecom.atlassian.plugin.loaders.classloading.Scanner
-
getDeploymentUnits
public Collection<com.atlassian.plugin.loaders.classloading.DeploymentUnit> getDeploymentUnits()
- Specified by:
getDeploymentUnits
in interfacecom.atlassian.plugin.loaders.classloading.Scanner
-
reset
public void reset()
- Specified by:
reset
in interfacecom.atlassian.plugin.loaders.classloading.Scanner
-
remove
public void remove(com.atlassian.plugin.loaders.classloading.DeploymentUnit deploymentUnit) throws com.atlassian.plugin.PluginException
- Specified by:
remove
in interfacecom.atlassian.plugin.loaders.classloading.Scanner
- Throws:
com.atlassian.plugin.PluginException
-
-