This is the interface for a class generating vouchers. A client will typically create an instance of a VoucherGenerator. It will then invoke the init() method, all the setters, the generate() method and finally the cleanup() method.
Method Summary
public void
cleanup() This method should be invoked by a client after the generate is completed.
generate() The client will invoke this method to generate a voucher.
throws: FrameworkException - if any framework error occurs. throws: ApplicationExceptions - if any application error occurs.
The client will invoke this method to generate a voucher.
throws: FrameworkException - if any framework error occurs. throws: ApplicationExceptions - if any application error occurs. a unique voucher.