public class MavenCoordinateProcessor extends Object implements FormatProcessor<MavenResolvedArtifact,MavenCoordinate>
MavenCoordinate
. MavenCoordinate
can be used for instance
to compare resolved artifacts of two ShrinkWrap Resolver runsConstructor and Description |
---|
MavenCoordinateProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
handles(Class<?> resolvedTypeClass)
Checks if the processor is able to process
resolvedTypeClass |
MavenCoordinate |
process(MavenResolvedArtifact input,
Class<MavenCoordinate> returnType)
Processes the specified
RESOLVEDTYPE and returns as the typed return value. |
boolean |
returns(Class<?> returnTypeClass)
Checks if the processor is able to return
returnTypeClass . |
public boolean handles(Class<?> resolvedTypeClass)
FormatProcessor
resolvedTypeClass
handles
in interface FormatProcessor<MavenResolvedArtifact,MavenCoordinate>
resolvedTypeClass
- The type to be processedresolvedTypeClass
or notpublic boolean returns(Class<?> returnTypeClass)
FormatProcessor
returnTypeClass
.returns
in interface FormatProcessor<MavenResolvedArtifact,MavenCoordinate>
returnTypeClass
- The type to be returnedreturnTypeClass
or notpublic MavenCoordinate process(MavenResolvedArtifact input, Class<MavenCoordinate> returnType) throws IllegalArgumentException
FormatProcessor
RESOLVEDTYPE
and returns as the typed return value.process
in interface FormatProcessor<MavenResolvedArtifact,MavenCoordinate>
input
- The type to be processedreturnType
- The type to be returnedIllegalArgumentException
- If the RESOLVEDTYPE
argument is not specified or nullCopyright © 2022 JBoss by Red Hat. All rights reserved.