Class SimpleOptionalitySelector
java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.OptionalitySelector
org.eclipse.aether.util.graph.transformer.SimpleOptionalitySelector
An optionality selector for use with 
ConflictResolver. In general, this selector only marks a dependency as
 optional if all its occurrences are optional. If however a direct dependency is involved, its optional flag is
 selected.- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance of this optionality selector.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDetermines the effective optional flag of the dependency given byConflictResolver.ConflictContext.getWinner().Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.OptionalitySelectorgetInstance
- 
Constructor Details- 
SimpleOptionalitySelectorpublic SimpleOptionalitySelector()Creates a new instance of this optionality selector.
 
- 
- 
Method Details- 
selectOptionalitypublic void selectOptionality(ConflictResolver.ConflictContext context) throws org.eclipse.aether.RepositoryException Description copied from class:ConflictResolver.OptionalitySelectorDetermines the effective optional flag of the dependency given byConflictResolver.ConflictContext.getWinner(). Implementations will usually iterateConflictResolver.ConflictContext.getItems(), inspectConflictResolver.ConflictItem.getOptionalities()and eventually callConflictResolver.ConflictContext.setOptional(Boolean)to deliver the effective optional flag.- Specified by:
- selectOptionalityin class- ConflictResolver.OptionalitySelector
- Parameters:
- context- the conflict context, must not be- null
- Throws:
- org.eclipse.aether.RepositoryException- if the optionality selection failed
 
 
-