public abstract class AbstractFeatureActivator extends Object implements FeatureActivator
FeatureActivator.PluginsInformation
Modifier and Type | Field and Description |
---|---|
protected Map<String,Plugin> |
_allPlugins
Map of association identifier, plugin
|
protected Logger |
_logger
Logger
|
protected boolean |
_safeMode
true when in safe mode
|
Constructor and Description |
---|
AbstractFeatureActivator(Map<String,Plugin> allPlugins) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeActiveFeatures, shortDump
protected final Map<String,Plugin> _allPlugins
protected boolean _safeMode
AbstractFeatureActivator(Map<String,Plugin> allPlugins)
protected Map<String,Plugin> computeActivePlugins(Collection<String> excludedPlugins, Map<String,Feature> initialFeatures, Map<String,PluginsManager.InactivityCause> inactiveFeatures, Map<String,ExtensionPointDefinition> extensionPoints, Collection<PluginIssue> errors)
excludedPlugins
- The excluded pluginsinitialFeatures
- The featuresinactiveFeatures
- The features that are inactiveextensionPoints
- The extension pointserrors
- The issuesprotected Map<String,Collection<String>> computeIncomingDeactivations(Map<String,Feature> features)
features
- The featuresprotected void removeInactiveFeatures(Map<String,Feature> initialFeatures, Map<String,PluginsManager.InactivityCause> inactiveFeatures, Map<String,Collection<String>> incomingDeactivations, Map<String,String> componentsConfig)
initialFeatures
- The initial featuresinactiveFeatures
- The inactive featuresincomingDeactivations
- The deactivationscomponentsConfig
- The componentsprotected void removeWrongPointReferences(Map<String,Feature> initialFeatures, Map<String,PluginsManager.InactivityCause> inactiveFeatures, Map<String,ExtensionPointDefinition> extensionPoints, Collection<PluginIssue> errors)
initialFeatures
- The initial featuresinactiveFeatures
- The inactive featuresextensionPoints
- The extension pointserrors
- The errorsprotected Map<String,Feature> processOutgoingDependencies(Map<String,Feature> initialFeatures, Map<String,PluginsManager.InactivityCause> inactiveFeatures, Collection<PluginIssue> errors)
initialFeatures
- The initial featuresinactiveFeatures
- The inactive featureserrors
- The errorsprivate void _computeFeaturesDependencies(String featureId, Map<String,Feature> initialFeatures, Map<String,Feature> resultFeatures, String initialFeatureId, Collection<PluginIssue> errors)
protected Map<String,Collection<String>> computeIncomingDependencies(Map<String,Feature> features)
features
- The featuresprotected Map<String,Collection<String>> computeOutgoingDependencies(Map<String,Feature> features)
features
- The featuresprotected void removeUnusedPassiveFeatures(Map<String,Feature> features, Map<String,PluginsManager.InactivityCause> inactiveFeatures, Map<String,Collection<String>> incomingDependencies)
features
- The featuresinactiveFeatures
- The inactive featuresincomingDependencies
- The dependenciesprotected Map<String,Map<String,ExtensionDefinition>> computeExtensions(Map<String,Feature> features, Collection<PluginIssue> errors)
features
- The featureserrors
- The errorsprotected Map<String,ComponentDefinition> computeComponents(Map<String,Feature> features, Map<String,String> componentsConfig, Collection<PluginIssue> errors)
features
- The featurescomponentsConfig
- The component configurationserrors
- The errorspublic String fullDump(FeatureActivator.PluginsInformation pluginInfo)
FeatureActivator
FeatureActivator.PluginsInformation
, in order to log in debug level.fullDump
in interface FeatureActivator
pluginInfo
- The information about pluginsprivate void _dumpPlugin(StringBuilder sb, Plugin plugin, Collection<String> excludedPlugins, Map<String,PluginsManager.InactivityCause> inactiveFeatures)
private void _dumpFeature(StringBuilder sb, Feature feature, Map<String,PluginsManager.InactivityCause> inactiveFeatures)