public final class ExcludePolicyFeatureActivator extends AbstractFeatureActivator
FeatureActivator
which activates all non-passive and non-excluded features.FeatureActivator.PluginsInformation
Modifier and Type | Field and Description |
---|---|
private Collection<String> |
_excludedFeatures |
private Collection<String> |
_excludedPlugins |
_allPlugins, _logger, _safeMode
Constructor and Description |
---|
ExcludePolicyFeatureActivator(Map<String,Plugin> allPlugins,
Collection<String> excludedPlugins,
Collection<String> excludedFeatures)
Constructs a new feature activator with an 'exclude' policy
|
Modifier and Type | Method and Description |
---|---|
private void |
_removeUserExcludedFeatures(Map<String,Feature> initialFeatures,
Map<String,PluginsManager.InactivityCause> inactiveFeatures) |
FeatureActivator.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. |
String |
shortDump(FeatureActivator.PluginsInformation pluginInfo)
Dumps the given
FeatureActivator.PluginsInformation , in order to log in info level. |
computeActivePlugins, computeComponents, computeExtensions, computeIncomingDeactivations, computeIncomingDependencies, computeOutgoingDependencies, fullDump, processOutgoingDependencies, removeInactiveFeatures, removeUnusedPassiveFeatures, removeWrongPointReferences
private Collection<String> _excludedPlugins
private Collection<String> _excludedFeatures
public ExcludePolicyFeatureActivator(Map<String,Plugin> allPlugins, Collection<String> excludedPlugins, Collection<String> excludedFeatures)
allPlugins
- all pluginsexcludedPlugins
- The plugins to excludeexcludedFeatures
- The features to excludepublic FeatureActivator.PluginsInformation computeActiveFeatures(Map<String,String> componentsConfig, boolean safeMode)
FeatureActivator
componentsConfig
- chosen components, among those with the same role.safeMode
- true
if application is in safe modeprivate void _removeUserExcludedFeatures(Map<String,Feature> initialFeatures, Map<String,PluginsManager.InactivityCause> inactiveFeatures)
public String shortDump(FeatureActivator.PluginsInformation pluginInfo)
FeatureActivator
FeatureActivator.PluginsInformation
, in order to log in info level.pluginInfo
- The information about plugins