Package org.mule.maven.client.internal
Class MulePluginDependencyGraphTransformer
java.lang.Object
org.mule.maven.client.internal.GraphCycleAvoidingTransformer
org.mule.maven.client.internal.ParentContextDependencyGraphTransformer
org.mule.maven.client.internal.MulePluginDependencyGraphTransformer
- All Implemented Interfaces:
org.eclipse.aether.collection.DependencyGraphTransformer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringKey to store ancestors of this node that define it's contextprotected booleanisChildNode(org.eclipse.aether.graph.DependencyNode childNode) Returns if the node should be marked as a child node.static booleanisPlugin(org.eclipse.aether.graph.DependencyNode node) protected booleanisSelectableParent(org.eclipse.aether.graph.DependencyNode dependencyNode) Returntrueif the node should be selected as parent and all children should be considered in it's context/Methods inherited from class org.mule.maven.client.internal.ParentContextDependencyGraphTransformer
equals, hashCode, markChildNode, transformNodeMethods inherited from class org.mule.maven.client.internal.GraphCycleAvoidingTransformer
transformGraph
-
Field Details
-
PLUGIN_ANCESTOR_KEY
- See Also:
-
-
Constructor Details
-
MulePluginDependencyGraphTransformer
public MulePluginDependencyGraphTransformer()
-
-
Method Details
-
isSelectableParent
protected boolean isSelectableParent(org.eclipse.aether.graph.DependencyNode dependencyNode) Description copied from class:ParentContextDependencyGraphTransformerReturntrueif the node should be selected as parent and all children should be considered in it's context/- Specified by:
isSelectableParentin classParentContextDependencyGraphTransformer- Parameters:
dependencyNode- the node to evaluate as parent.- Returns:
- true if the node should be considered as context parent
-
isChildNode
protected boolean isChildNode(org.eclipse.aether.graph.DependencyNode childNode) Description copied from class:ParentContextDependencyGraphTransformerReturns if the node should be marked as a child node. That means that it belongs to a parent's context- Specified by:
isChildNodein classParentContextDependencyGraphTransformer- Parameters:
childNode- the node to evaluate as child node- Returns:
- true if the node belongs to a parent context
-
getAncestorKey
Description copied from class:ParentContextDependencyGraphTransformerKey to store ancestors of this node that define it's context- Specified by:
getAncestorKeyin classParentContextDependencyGraphTransformer- Returns:
- the key used to store node ancestors
-
isPlugin
public static boolean isPlugin(org.eclipse.aether.graph.DependencyNode node) - Returns:
trueif node is amule-plugin.
-