Package org.ametys.runtime.plugin
Interface FeatureActivator
- All Known Implementing Classes:
- AbstractFeatureActivator,- ExcludePolicyFeatureActivator,- IncludePolicyFeatureActivator
public interface FeatureActivator
An activator of 
The implemententations must define the strategy in order to determine which extension points, components, etc. need to be loaded.
features, which will be loaded by the PluginsManager.
 The implemententations must define the strategy in order to determine which extension points, components, etc. need to be loaded.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classHelper class containing all relevant information after features list computation.
- 
Method SummaryModifier and TypeMethodDescriptioncomputeActiveFeatures(Map<String, String> componentsConfig, boolean safeMode) Computes the actual plugins and features to load, based on values selected by the administrator.
 This method does not actually load nor execute any Java code.fullDump(FeatureActivator.PluginsInformation pluginInfo) Dumps the givenFeatureActivator.PluginsInformation, in order to log in debug level.shortDump(FeatureActivator.PluginsInformation pluginInfo) Dumps the givenFeatureActivator.PluginsInformation, in order to log in info level.
- 
Method Details- 
computeActiveFeaturesFeatureActivator.PluginsInformation computeActiveFeatures(Map<String, String> componentsConfig, boolean safeMode) Computes the actual plugins and features to load, based on values selected by the administrator.
 This method does not actually load nor execute any Java code. It reads plugins definitions, selects active features and gets components and extensions definitions.- Parameters:
- componentsConfig- chosen components, among those with the same role.
- safeMode-- trueif application is in safe mode
- Returns:
- all information gathered during plugins reading.
 
- 
fullDumpDumps the givenFeatureActivator.PluginsInformation, in order to log in debug level.- Parameters:
- pluginInfo- The information about plugins
- Returns:
- The string to display in debug level
 
- 
shortDumpDumps the givenFeatureActivator.PluginsInformation, in order to log in info level.- Parameters:
- pluginInfo- The information about plugins
- Returns:
- The string to display in info level
 
 
-