Interface PurgeableFeatureModule<T extends FeatureDescriptor>
- Type Parameters:
T
- type of supportedFeatureDescriptor
- All Superinterfaces:
FeatureModule<T>
- All Known Implementing Classes:
PluginDatabaseMigrator
Represents
FeatureModule
that support cleaning stale resources.
When admin decide it no longer need plugin, it can decide to remove all data related to plugin.
In such case all module that store data must to remove them from the system. This interface
represents modules that need cleaning in such case.
NOTE: purge is invoked on deactived plugin, so none of it's functionalities is working.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
purgeDescriptor
(Plugin plugin, T descriptor) Purge data related to descriptor by module.Methods inherited from interface eu.rarogsoftware.rarog.platform.api.plugins.FeatureModule
plugDescriptor, unplugDescriptor
-
Method Details
-
purgeDescriptor
Purge data related to descriptor by module. Purge works on not active plugin.- Parameters:
plugin
- plugin that is parent of descriptordescriptor
- feature descriptor to purge
-