Package org.approvej.review
Interface Reviewer
- All Superinterfaces:
Function<PathProvider,ReviewResult>
- All Known Implementing Classes:
AutomaticReviewer,NoneReviewer
Interface for triggering a review by the user.
This usually means that a diff/merge tool is opened, which presents the difference between the received and the previously approved value to users in case they differ.
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StringresolveCommand(String commandTemplate, Path approvedPath, Path receivedPath) Resolves placeholders in the given command template with the actual file paths.static StringresolveCommand(String commandTemplate, PathProvider pathProvider) Resolves placeholders in the given command template with the actual file paths.
-
Field Details
-
RECEIVED_PLACEHOLDER
Placeholder in commands that is replaced with the received file path.- See Also:
-
APPROVED_PLACEHOLDER
Placeholder in commands that is replaced with the approved file path.- See Also:
-
-
Method Details
-
resolveCommand
Resolves placeholders in the given command template with the actual file paths.- Parameters:
commandTemplate- the command containing "{receivedFile}" and "{approvedFile}" placeholderspathProvider- the path provider to resolve paths from- Returns:
- the command with placeholders replaced by actual paths
-
resolveCommand
Resolves placeholders in the given command template with the actual file paths.- Parameters:
commandTemplate- the command containing "{receivedFile}" and "{approvedFile}" placeholdersapprovedPath- the approved file pathreceivedPath- the received file path- Returns:
- the command with placeholders replaced by actual paths
-