Interface ComponentResolver

  • All Known Implementing Classes:
    IvyModuleComponentResolver, SbomLinkComponentResolver

    public interface ComponentResolver
    Common 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 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 fails
        org.apache.tools.ant.BuildException