ibspan.ecap.merchant.shopdecisions.negotiationpreparation
Class PreparationTask
java.lang.Object
ibspan.ecap.merchant.shopdecisions.negotiationpreparation.PreparationTask
- All Implemented Interfaces:
- java.util.concurrent.Callable<NegotiationDescription>
public class PreparationTask
- extends java.lang.Object
- implements java.util.concurrent.Callable<NegotiationDescription>
A Callable
class representing a negotiation preparation task. The template is prepared by a TemplatePreparer
specified in a constructor.
- Author:
- Micha³ Drozdowicz
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreparationTask
public PreparationTask(java.lang.String productId,
java.util.Date preparationDate,
NegotiationDescription previousTemplate,
TemplatePreparer preparer)
- Creates a new instance of
PreparationTask
.
- Parameters:
productId
- the id of the product for which a negotiation template is to be preparedpreparationDate
- the date from which the template is to be usedpreviousTemplate
- the template used previouslypreparer
- the object responsible for preparing the template
call
public NegotiationDescription call()
throws java.lang.Exception
- Specified by:
call
in interface java.util.concurrent.Callable<NegotiationDescription>
- Throws:
java.lang.Exception