Interface PurgeableFeatureModule<T extends FeatureDescriptor>

Type Parameters:
T - type of supported FeatureDescriptor
All Superinterfaces:
FeatureModule<T>
All Known Implementing Classes:
PluginDatabaseMigrator

public interface PurgeableFeatureModule<T extends FeatureDescriptor> extends FeatureModule<T>
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 Details

    • purgeDescriptor

      void purgeDescriptor(Plugin plugin, T descriptor)
      Purge data related to descriptor by module. Purge works on not active plugin.
      Parameters:
      plugin - plugin that is parent of descriptor
      descriptor - feature descriptor to purge