Package org.jboss.gm.analyzer.alignment
Class WithCustomizersDelegatingAlignmentService
- java.lang.Object
-
- org.jboss.gm.analyzer.alignment.WithCustomizersDelegatingAlignmentService
-
- All Implemented Interfaces:
AlignmentService
public class WithCustomizersDelegatingAlignmentService extends java.lang.Object implements AlignmentService
An implementation ofAlignmentServicethat delegates to anotherAlignmentService. The request the delegate receives is not the original this class receives, but is the product of the list ofAlignmentService.RequestCustomizerthis class was created with. Moreover, the response returned is not what the delegate returned, but is the result of the list ofAlignmentService.ResponseCustomizerthis class was created with- See Also:
AlignmentServiceFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.gm.analyzer.alignment.AlignmentService
AlignmentService.Request, AlignmentService.RequestCustomizer, AlignmentService.Response, AlignmentService.ResponseCustomizer
-
-
Constructor Summary
Constructors Constructor Description WithCustomizersDelegatingAlignmentService(DAAlignmentService delegate, java.util.List<AlignmentService.RequestCustomizer> requestCustomizers, java.util.List<AlignmentService.ResponseCustomizer> responseCustomizers)Creates a new alignment service that delegates to the given alignment service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlignmentService.Responsealign(AlignmentService.Request request)Performs the alignment of the given request.
-
-
-
Constructor Detail
-
WithCustomizersDelegatingAlignmentService
public WithCustomizersDelegatingAlignmentService(DAAlignmentService delegate, java.util.List<AlignmentService.RequestCustomizer> requestCustomizers, java.util.List<AlignmentService.ResponseCustomizer> responseCustomizers)
Creates a new alignment service that delegates to the given alignment service.- Parameters:
delegate- the alignment service to delegate torequestCustomizers- the list of request customizersresponseCustomizers- the list of response customizers
-
-
Method Detail
-
align
public AlignmentService.Response align(AlignmentService.Request request) throws org.commonjava.maven.ext.common.ManipulationException
Description copied from interface:AlignmentServicePerforms the alignment of the given request.- Specified by:
alignin interfaceAlignmentService- Parameters:
request- both the collected project dependencies GAVs and the project GAVs- Returns:
- the resulting aligned dependencies from the dependency analyzer
- Throws:
org.commonjava.maven.ext.common.ManipulationException- if an error occurs when looking up GAVs
-
-