Interface HardwareLinkResolver


public interface HardwareLinkResolver
Interface to add a new way of matching HardwareLink to a Board. The built in HardwareLinkResolver simply matches BoardIdentifier to the HardwareLink, but it is possible to add additional resolvers that use other policies such as persisted serial number mappings, broader type matching, manually defined matching rules, and so on. This allows the user to implement any required policy as needed.
Since:
1.0
Version:
2023-09-05
  • Method Details

    • matchLinkToBoard

      Board matchLinkToBoard(HardwareService service, HardwareLink link, Collection<Board> boards)
      Return a matching Board for the specified link to link with the board. Return null if no match. Any board from the supplied pending list can be matched. This should only return a Board when it should be bound to the specified link.
      Parameters:
      service - the HardwareService
      link - the link to match
      boards - the collection of boards to match from