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 Summary
Modifier and TypeMethodDescriptionmatchLinkToBoard
(HardwareService service, HardwareLink link, Collection<Board> boards) Return a matchingBoard
for the specified link to link with the board.
-
Method Details
-
matchLinkToBoard
Return a matchingBoard
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 aBoard
when it should be bound to the specified link.- Parameters:
service
- theHardwareService
link
- the link to matchboards
- the collection of boards to match from
-