Class DependencyManagerUtils
java.lang.Object
org.eclipse.aether.util.graph.manager.DependencyManagerUtils
A utility class assisting in analyzing the effects of dependency management.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe key in the repository session'sconfiguration propertiesused to store aBooleanflag controlling the verbose mode for dependency management.static final StringThe key in the dependency node'scustom dataunder which the original exclusions are stored.static final StringThe key in the dependency node'scustom dataunder which the original optional flag is stored.static final StringThe key in the dependency node'scustom dataunder which the original properties are stored.static final StringThe key in the dependency node'scustom dataunder which the original scope is stored.static final StringThe key in the dependency node'scustom dataunder which the original version is stored.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Collection<org.eclipse.aether.graph.Exclusion> getPremanagedExclusions(org.eclipse.aether.graph.DependencyNode node) Gets theExclusions of the specified dependency node before dependency management was applied (if any).static BooleangetPremanagedOptional(org.eclipse.aether.graph.DependencyNode node) Gets the optional flag of the specified dependency node before dependency management was applied (if any).getPremanagedProperties(org.eclipse.aether.graph.DependencyNode node) Gets the properties of the specified dependency node before dependency management was applied (if any).static StringgetPremanagedScope(org.eclipse.aether.graph.DependencyNode node) Gets the scope of the specified dependency node before dependency management was applied (if any).static StringgetPremanagedVersion(org.eclipse.aether.graph.DependencyNode node) Gets the version or version range of the specified dependency node before dependency management was applied (if any).
- 
Field Details- 
CONFIG_PROP_VERBOSEThe key in the repository session'sconfiguration propertiesused to store aBooleanflag controlling the verbose mode for dependency management. If enabled, the original attributes of a dependency before its update due to dependency management will be recorded in the node'scustom datawhen building a dependency graph.- See Also:
- Sourced from:
- RepositorySystemSession.getConfigProperties()
- Value type:
- Boolean
- Default value:
- false
 
- 
NODE_DATA_PREMANAGED_VERSIONThe key in the dependency node'scustom dataunder which the original version is stored.- See Also:
 
- 
NODE_DATA_PREMANAGED_SCOPEThe key in the dependency node'scustom dataunder which the original scope is stored.- See Also:
 
- 
NODE_DATA_PREMANAGED_OPTIONALThe key in the dependency node'scustom dataunder which the original optional flag is stored.- See Also:
 
- 
NODE_DATA_PREMANAGED_EXCLUSIONSThe key in the dependency node'scustom dataunder which the original exclusions are stored.- Since:
- 1.1.0
- See Also:
 
- 
NODE_DATA_PREMANAGED_PROPERTIESThe key in the dependency node'scustom dataunder which the original properties are stored.- Since:
- 1.1.0
- See Also:
 
 
- 
- 
Constructor Details- 
DependencyManagerUtilspublic DependencyManagerUtils()
 
- 
- 
Method Details- 
getPremanagedVersionGets the version or version range of the specified dependency node before dependency management was applied (if any).- Parameters:
- node- the dependency node to retrieve the premanaged data for, must not be- null
- Returns:
- the node's dependency version before dependency management or nullif the version was not managed or ifCONFIG_PROP_VERBOSEwas not enabled
 
- 
getPremanagedScopeGets the scope of the specified dependency node before dependency management was applied (if any).- Parameters:
- node- the dependency node to retrieve the premanaged data for, must not be- null
- Returns:
- the node's dependency scope before dependency management or nullif the scope was not managed or ifCONFIG_PROP_VERBOSEwas not enabled
 
- 
getPremanagedOptionalGets the optional flag of the specified dependency node before dependency management was applied (if any).- Parameters:
- node- the dependency node to retrieve the premanaged data for, must not be- null
- Returns:
- the node's optional flag before dependency management or nullif the flag was not managed or ifCONFIG_PROP_VERBOSEwas not enabled
 
- 
getPremanagedExclusionspublic static Collection<org.eclipse.aether.graph.Exclusion> getPremanagedExclusions(org.eclipse.aether.graph.DependencyNode node) Gets theExclusions of the specified dependency node before dependency management was applied (if any).- Parameters:
- node- the dependency node to retrieve the premanaged data for, must not be- null
- Returns:
- the nodes' Exclusions before dependency management ornullif exclusions were not managed or ifCONFIG_PROP_VERBOSEwas not enabled
- Since:
- 1.1.0
 
- 
getPremanagedPropertiespublic static Map<String,String> getPremanagedProperties(org.eclipse.aether.graph.DependencyNode node) Gets the properties of the specified dependency node before dependency management was applied (if any).- Parameters:
- node- the dependency node to retrieve the premanaged data for, must not be- null
- Returns:
- the nodes' properties before dependency management or nullif properties were not managed or ifCONFIG_PROP_VERBOSEwas not enabled
- Since:
- 1.1.0
 
 
-