Package org.approvej.approve
Class Approvers
java.lang.Object
org.approvej.approve.Approvers
Collection of static methods to create
Approver
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic FileApprover
file
(PathProvider pathProvider) Creates a newApprover
that uses the givenPathProvider
to determine the paths of approved and received files.static InplaceApprover
Creates aApprover
using the given previouslyApproved value.
-
Method Details
-
value
Creates aApprover
using the given previouslyApproved value.- Parameters:
previouslyApproved
- the approved value- Returns:
- a new
InplaceApprover
for the given previouslyApproved value.
-
file
Creates a newApprover
that uses the givenPathProvider
to determine the paths of approved and received files.- Parameters:
pathProvider
- the provider for the paths of the approved and received files- Returns:
- a new
FileApprover
that uses the givenPathProvider
-