Package org.apache.ant.cyclonedx
Interface ComponentResolver
-
- All Known Implementing Classes:
IvyModuleComponentResolver,SbomLinkComponentResolver
public interface ComponentResolverCommon interface for "resolvers" that read data of a component form external sources and enrich an existing component withe data read - and may even identify additional components.Any additional component detected may be added to the SBOM. If another component already exists with the same group and name coordinates the additional component detected by this instance is ignored.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<Component>resolve(Component component)Resolves the external data and enriches the component with it.
-
-
-
Method Detail
-
resolve
java.util.Collection<Component> resolve(Component component) throws java.io.IOException, org.apache.tools.ant.BuildException
Resolves the external data and enriches the component with it.- Parameters:
component- the component to enrich- Returns:
- additional components identified while reading external data
- Throws:
java.io.IOException- if resolution failsorg.apache.tools.ant.BuildException
-
-